clang 20.0.0git
|
#include "clang/Basic/MacroBuilder.h"
Public Member Functions | |
MacroBuilder (raw_ostream &Output) | |
void | defineMacro (const Twine &Name, const Twine &Value="1", Twine DeprecationMsg="") |
Append a #define line for macro of the form "\#define Name Value\n". | |
void | undefineMacro (const Twine &Name) |
Append a #undef line for Name. | |
void | append (const Twine &Str) |
Directly append Str and a newline to the underlying buffer. | |
Definition at line 23 of file MacroBuilder.h.
|
inline |
Definition at line 26 of file MacroBuilder.h.
|
inline |
Directly append Str and a newline to the underlying buffer.
Definition at line 46 of file MacroBuilder.h.
|
inline |
Append a #define line for macro of the form "\#define Name Value\n".
If DeprecationMsg is provided, also append a pragma to deprecate the defined macro.
Definition at line 31 of file MacroBuilder.h.
|
inline |
Append a #undef line for Name.
Name should be of the form XXX and we emit "\#undef XXX".
Definition at line 41 of file MacroBuilder.h.