clang API Documentation
#include <MacroBuilder.h>
Public Member Functions | |
| 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". | |
| void | undefineMacro (const Twine &Name) |
| void | append (const Twine &Str) |
| Directly append Str and a newline to the underlying buffer. | |
Definition at line 22 of file MacroBuilder.h.
| clang::MacroBuilder::MacroBuilder | ( | raw_ostream & | Output | ) | [inline] |
Definition at line 25 of file MacroBuilder.h.
| void clang::MacroBuilder::append | ( | const Twine & | Str | ) | [inline] |
Directly append Str and a newline to the underlying buffer.
Definition at line 39 of file MacroBuilder.h.
Referenced by AddImplicitInclude(), AddImplicitIncludeMacros(), AddObjCXXARCLibstdcxxDefines(), InitializePredefinedMacros(), and clang::InitializePreprocessor().
| void clang::MacroBuilder::defineMacro | ( | const Twine & | Name, |
| const Twine & | Value = "1" |
||
| ) | [inline] |
Append a #define line for macro of the form "#define Name Value\n".
Definition at line 28 of file MacroBuilder.h.
Referenced by AddObjCXXARCLibstdcxxDefines(), DefineBuiltinMacro(), defineCPUMacros(), DefineExactWidthIntType(), DefineFloatMacros(), DefineStd(), DefineType(), DefineTypeSize(), DefineTypeSizeof(), DefineTypeWidth(), getDarwinDefines(), RTEMSTargetInfo< Target >::getOSDefines(), InitializePredefinedMacros(), and InitializeStandardPredefinedMacros().
| void clang::MacroBuilder::undefineMacro | ( | const Twine & | Name | ) | [inline] |
Append a #undef line for Name. Name should be of the form XXX and we emit "#undef XXX".
Definition at line 34 of file MacroBuilder.h.
Referenced by clang::InitializePreprocessor().