14 #ifndef LLVM_CLANG_BASIC_MACROBUILDER_H 15 #define LLVM_CLANG_BASIC_MACROBUILDER_H 18 #include "llvm/ADT/Twine.h" 19 #include "llvm/Support/raw_ostream.h" 30 Out <<
"#define " << Name <<
' ' <<
Value <<
'\n';
36 Out <<
"#undef " << Name <<
'\n';
void undefineMacro(const Twine &Name)
Append a #undef line for 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.
Dataflow Directional Tag Classes.
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".