Home
last modified time | relevance | path

Searched refs:MacroNameTok (Results 1 – 12 of 12) sorted by relevance

/external/clang/include/clang/Lex/
DPPCallbacks.h242 virtual void MacroExpands(const Token &MacroNameTok, in MacroExpands() argument
247 virtual void MacroDefined(const Token &MacroNameTok, in MacroDefined() argument
254 virtual void MacroUndefined(const Token &MacroNameTok, in MacroUndefined() argument
260 virtual void Defined(const Token &MacroNameTok, const MacroDefinition &MD, in Defined() argument
298 virtual void Ifdef(SourceLocation Loc, const Token &MacroNameTok, in Ifdef() argument
306 virtual void Ifndef(SourceLocation Loc, const Token &MacroNameTok, in Ifndef() argument
438 void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD, in MacroExpands() argument
440 First->MacroExpands(MacroNameTok, MD, Range, Args); in MacroExpands()
441 Second->MacroExpands(MacroNameTok, MD, Range, Args); in MacroExpands()
444 void MacroDefined(const Token &MacroNameTok, const MacroDirective *MD) override { in MacroDefined() argument
[all …]
DPPConditionalDirectiveRecord.h93 void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
95 void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
DPreprocessingRecord.h499 void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
501 void Ifndef(SourceLocation Loc, const Token &MacroNameTok,
504 void Defined(const Token &MacroNameTok, const MacroDefinition &MD,
DPreprocessor.h1685 bool CheckMacroName(Token &MacroNameTok, MacroUse isDefineUndef,
1741 void ReadMacroName(Token &MacroNameTok, MacroUse IsDefineUndef = MU_Other,
/external/clang/lib/Lex/
DPPDirectives.cpp222 bool Preprocessor::CheckMacroName(Token &MacroNameTok, MacroUse isDefineUndef, in CheckMacroName() argument
225 if (MacroNameTok.is(tok::eod)) in CheckMacroName()
226 return Diag(MacroNameTok, diag::err_pp_missing_macro_name); in CheckMacroName()
228 IdentifierInfo *II = MacroNameTok.getIdentifierInfo(); in CheckMacroName()
231 std::string Spelling = getSpelling(MacroNameTok, &Invalid); in CheckMacroName()
233 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); in CheckMacroName()
237 return Diag(MacroNameTok, diag::err_pp_macro_not_identifier); in CheckMacroName()
241 Diag(MacroNameTok, getLangOpts().MicrosoftExt in CheckMacroName()
244 << II << MacroNameTok.getKind(); in CheckMacroName()
248 MacroNameTok.setIdentifierInfo(II); in CheckMacroName()
[all …]
DPreprocessingRecord.cpp383 void PreprocessingRecord::Ifdef(SourceLocation Loc, const Token &MacroNameTok, in Ifdef() argument
387 addMacroExpansion(MacroNameTok, MD.getMacroInfo(), in Ifdef()
388 MacroNameTok.getLocation()); in Ifdef()
391 void PreprocessingRecord::Ifndef(SourceLocation Loc, const Token &MacroNameTok, in Ifndef() argument
395 addMacroExpansion(MacroNameTok, MD.getMacroInfo(), in Ifndef()
396 MacroNameTok.getLocation()); in Ifndef()
399 void PreprocessingRecord::Defined(const Token &MacroNameTok, in Defined() argument
404 addMacroExpansion(MacroNameTok, MD.getMacroInfo(), in Defined()
405 MacroNameTok.getLocation()); in Defined()
DPPConditionalDirectiveRecord.cpp86 const Token &MacroNameTok, in Ifdef() argument
93 const Token &MacroNameTok, in Ifndef() argument
/external/clang/unittests/Basic/
DSourceManagerTest.cpp263 void MacroDefined(const Token &MacroNameTok, in MacroDefined() argument
266 MacroNameTok.getIdentifierInfo()->getName(), in MacroDefined()
269 void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD, in MacroExpands() argument
271 Macros.push_back(MacroAction(MacroNameTok.getLocation(), in MacroExpands()
272 MacroNameTok.getIdentifierInfo()->getName(), in MacroExpands()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp167 void MacroDefined(const Token &MacroNameTok,
171 void MacroUndefined(const Token &MacroNameTok,
361 void PrintPPOutputPPCallbacks::MacroDefined(const Token &MacroNameTok, in MacroDefined() argument
370 PrintMacroDefinition(*MacroNameTok.getIdentifierInfo(), *MI, PP, OS); in MacroDefined()
374 void PrintPPOutputPPCallbacks::MacroUndefined(const Token &MacroNameTok, in MacroUndefined() argument
379 MoveToLine(MacroNameTok.getLocation()); in MacroUndefined()
380 OS << "#undef " << MacroNameTok.getIdentifierInfo()->getName(); in MacroUndefined()
DASTUnit.cpp771 void MacroDefined(const Token &MacroNameTok, in MacroDefined() argument
773 Hash = llvm::HashString(MacroNameTok.getIdentifierInfo()->getName(), Hash); in MacroDefined()
/external/clang/lib/ARCMigrate/
DARCMT.cpp441 void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD, in MacroExpands() argument
443 if (MacroNameTok.getIdentifierInfo()->getName() == getARCMTMacroName()) in MacroExpands()
444 ARCMTMacroLocs.push_back(MacroNameTok.getLocation()); in MacroExpands()
/external/clang/tools/libclang/
DIndexing.cpp264 void MacroUndefined(const Token &MacroNameTok, in MacroUndefined() argument
268 void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD, in MacroExpands() argument