15 #ifndef LLVM_CLANG_BASIC_MACROBUILDER_H
16 #define LLVM_CLANG_BASIC_MACROBUILDER_H
19 #include "llvm/ADT/Twine.h"
20 #include "llvm/Support/raw_ostream.h"
31 Out <<
"#define " << Name <<
' ' <<
Value <<
'\n';
37 Out <<
"#undef " << Name <<
'\n';
void undefineMacro(const Twine &Name)
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
void append(const Twine &Str)
Directly append Str and a newline to the underlying buffer.
MacroBuilder(raw_ostream &Output)
void defineMacro(const Twine &Name, const Twine &Value="1")
Append a #define line for macro of the form "\#define Name Value\n".