25 assert(PP &&
"No Preprocessor registered.");
33 if (!MI || MI->tokens_empty())
36 const Token &
T = MI->tokens().back();
37 if (!
T.isLiteral() || !
T.getLiteralData())
40 return StringRef(
T.getLiteralData(),
T.getLength()) ==
"1";
Defines the clang::LangOptions interface.
Defines the clang::Preprocessor interface.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
const MacroInfo * getMacroInfo(const IdentifierInfo *II) const
IdentifierInfo * getIdentifierInfo(StringRef Name) const
Return information about the specified preprocessor identifier token.
bool isMacroDefined(StringRef Id)
Token - This structure provides full information about a lexed token.
bool isAnnexKAvailable(Preprocessor *PP, const LangOptions &LO)
Calculates whether Annex K is available for the current translation unit based on the macro definitio...
const FunctionProtoType * T