/external/clang/include/clang/Lex/ |
D | MacroInfo.h | 314 class MacroDirective { 324 MacroDirective *Previous; 357 return const_cast<MacroDirective*>(this)->getModuleDataStart(); in getModuleDataStart() 360 MacroDirective(Kind K, SourceLocation Loc, 382 void setPrevious(MacroDirective *Prev) { in setPrevious() 387 const MacroDirective *getPrevious() const { return Previous; } in getPrevious() 390 MacroDirective *getPrevious() { return Previous; } in getPrevious() 460 return const_cast<MacroDirective*>(this)->getDefinition(); in getDefinition() 482 static bool classof(const MacroDirective *) { return true; } in classof() argument 486 class DefMacroDirective : public MacroDirective { [all …]
|
D | PPCallbacks.h | 30 class MacroDirective; variable 241 virtual void MacroExpands(const Token &MacroNameTok, const MacroDirective *MD, in MacroExpands() 247 const MacroDirective *MD) { in MacroDefined() 254 const MacroDirective *MD) { in MacroUndefined() 259 virtual void Defined(const Token &MacroNameTok, const MacroDirective *MD, in Defined() 298 const MacroDirective *MD) { in Ifdef() 306 const MacroDirective *MD) { in Ifndef() 437 void MacroExpands(const Token &MacroNameTok, const MacroDirective *MD, in MacroExpands() 443 void MacroDefined(const Token &MacroNameTok, const MacroDirective *MD) override { in MacroDefined() 449 const MacroDirective *MD) override { in MacroUndefined() [all …]
|
D | PreprocessingRecord.h | 490 void MacroExpands(const Token &Id, const MacroDirective *MD, 492 void MacroDefined(const Token &Id, const MacroDirective *MD) override; 493 void MacroUndefined(const Token &Id, const MacroDirective *MD) override; 501 const MacroDirective *MD) override; 503 const MacroDirective *MD) override; 505 void Defined(const Token &MacroNameTok, const MacroDirective *MD,
|
D | Preprocessor.h | 359 MacroDirective *MD; 361 MacroExpandsInfo(Token Tok, MacroDirective *MD, SourceRange Range) in MacroExpandsInfo() 369 llvm::DenseMap<const IdentifierInfo*, MacroDirective*> Macros; 606 MacroDirective *getMacroDirective(IdentifierInfo *II) const { in getMacroDirective() 610 MacroDirective *MD = getMacroDirectiveHistory(II); in getMacroDirective() 620 if (MacroDirective *MD = getMacroDirective(II)) in getMacroInfo() 630 MacroDirective *getMacroDirectiveHistory(const IdentifierInfo *II) const; 633 void appendMacroDirective(IdentifierInfo *II, MacroDirective *MD); 647 void setLoadedMacroDirective(IdentifierInfo *II, MacroDirective *MD); 654 MacroDirective*>::const_iterator macro_iterator; [all …]
|
D | PPConditionalDirectiveRecord.h | 94 const MacroDirective *MD) override; 96 const MacroDirective *MD) override;
|
/external/clang/lib/Lex/ |
D | MacroInfo.cpp | 172 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition() 173 MacroDirective *MD = this; in getDefinition() 195 const MacroDirective::DefInfo 196 MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const { in findDirectiveAtLoc() 208 void MacroDirective::dump() const { in dump()
|
D | PreprocessingRecord.cpp | 383 const MacroDirective *MD) { in Ifdef() 391 const MacroDirective *MD) { in Ifndef() 399 const MacroDirective *MD, in Defined() 411 void PreprocessingRecord::MacroExpands(const Token &Id,const MacroDirective *MD, in MacroExpands() 418 const MacroDirective *MD) { in MacroDefined() 428 const MacroDirective *MD) { in MacroUndefined()
|
D | PPConditionalDirectiveRecord.cpp | 87 const MacroDirective *MD) { in Ifdef() 94 const MacroDirective *MD) { in Ifndef()
|
D | PPMacroExpansion.cpp | 36 MacroDirective * 45 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective() 49 MacroDirective *&StoredMD = Macros[II]; in appendMacroDirective() 63 MacroDirective *MD) { in setLoadedMacroDirective() 65 MacroDirective *&StoredMD = Macros[II]; in setLoadedMacroDirective() 225 MacroDirective *MD) { in HandleMacroExpandedIdentifier() 226 MacroDirective::DefInfo Def = MD->getDefinition(); in HandleMacroExpandedIdentifier() 307 for (MacroDirective::DefInfo PrevDef = Def.getPreviousDefinition(); in HandleMacroExpandedIdentifier()
|
D | Preprocessor.cpp | 324 const MacroDirective::DefInfo in getLastMacroWithSpelling() 625 if (MacroDirective *MD = getMacroDirective(&II)) { in HandleIdentifier()
|
D | PPExpressions.cpp | 114 MacroDirective *Macro = nullptr; in EvaluateDefined() 147 MacroDirective *MD = Macro; in EvaluateDefined()
|
D | PPDirectives.cpp | 1293 MacroDirective *MD = getMacroDirective(II); in HandleMacroPublicDirective() 1320 MacroDirective *MD = getMacroDirective(II); in HandleMacroPrivateDirective() 2294 MacroDirective *MD = getMacroDirective(MacroNameTok.getIdentifierInfo()); in HandleUndefDirective() 2347 MacroDirective *MD = getMacroDirective(MII); in HandleIfdefDirective()
|
D | Pragma.cpp | 593 if (MacroDirective *CurrentMD = getMacroDirective(IdentInfo)) { in HandlePragmaPopMacro()
|
/external/clang/lib/Frontend/ |
D | PrintPreprocessedOutput.cpp | 169 const MacroDirective *MD) override; 173 const MacroDirective *MD) override; 351 const MacroDirective *MD) { in MacroDefined() 364 const MacroDirective *MD) { in MacroUndefined()
|
D | CompilerInstance.cpp | 1091 MacroDirective::DefInfo LatestDef = in checkConfigMacro() 1093 for (MacroDirective::DefInfo Def = LatestDef; Def; in checkConfigMacro() 1119 MacroDirective::DefInfo LatestDef = in checkConfigMacro() 1121 MacroDirective::DefInfo PredefinedDef; in checkConfigMacro() 1122 for (MacroDirective::DefInfo Def = LatestDef; Def; in checkConfigMacro()
|
D | ASTUnit.cpp | 768 const MacroDirective *MD) override { in MacroDefined()
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 262 const MacroDirective *MD) override { in MacroDefined() 267 void MacroExpands(const Token &MacroNameTok, const MacroDirective *MD, in MacroExpands()
|
/external/clang/lib/Serialization/ |
D | ASTWriter.cpp | 2015 const std::pair<const IdentifierInfo *, MacroDirective *> *X, in compareMacroDirectives() 2016 const std::pair<const IdentifierInfo *, MacroDirective *> *Y) { in compareMacroDirectives() 2020 static bool shouldIgnoreMacro(MacroDirective *MD, bool IsModule, in shouldIgnoreMacro() 2071 SmallVector<std::pair<const IdentifierInfo *, MacroDirective *>, 2> in WritePreprocessor() 2089 MacroDirective *MD = MacroDirectives[I].second; in WritePreprocessor() 3145 bool isInterestingIdentifier(IdentifierInfo *II, MacroDirective *&Macro) { in isInterestingIdentifier() 3156 bool hadMacroDefinition(IdentifierInfo *II, MacroDirective *&Macro) { in hadMacroDefinition() 3183 MacroDirective * 3184 getFirstPublicSubmoduleMacro(MacroDirective *MD, MacroState &State) { in getFirstPublicSubmoduleMacro() 3185 if (MacroDirective *NextMD = getPublicSubmoduleMacro(MD, State)) in getFirstPublicSubmoduleMacro() [all …]
|
D | ASTReader.cpp | 1800 MacroDirective *import(Preprocessor &PP, SourceLocation ImportLoc) const { in import() 1894 MacroDirective *Latest = nullptr, *Earliest = nullptr; in installPCHMacroDirectives() 1897 MacroDirective *MD = nullptr; in installPCHMacroDirectives() 1899 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in installPCHMacroDirectives() 1901 case MacroDirective::MD_Define: { in installPCHMacroDirectives() 1918 case MacroDirective::MD_Undefine: { in installPCHMacroDirectives() 1929 case MacroDirective::MD_Visibility: in installPCHMacroDirectives() 2000 MacroDirective *Prev = PP.getMacroDirective(II); in removeOverriddenMacros() 2055 MacroDirective *Imported = MMI->import(PP, ImportLoc); in installImportedMacro()
|
/external/clang/tools/libclang/ |
D | Indexing.cpp | 282 void MacroDefined(const Token &Id, const MacroDirective *MD) override {} in MacroDefined() 287 const MacroDirective *MD) override {} in MacroUndefined() 290 void MacroExpands(const Token &MacroNameTok, const MacroDirective *MD, in MacroExpands()
|
D | CIndex.cpp | 7147 MacroDirective *MD = PP.getMacroDirectiveHistory(&II); in getMacroInfo() 7149 for (MacroDirective::DefInfo in getMacroInfo() 7204 MacroDirective *InnerMD = PP.getMacroDirectiveHistory(&II); in checkForMacroInMacroDefinition()
|
/external/clang/lib/Sema/ |
D | SemaFixItUtils.cpp | 167 MacroDirective *Macro = S.PP.getMacroDirectiveHistory(II); in isMacroDefined()
|
/external/clang/include/clang/Serialization/ |
D | ASTWriter.h | 53 class MacroDirective; variable
|
D | ASTReader.h | 75 class MacroDirective; variable
|
/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 435 void MacroExpands(const Token &MacroNameTok, const MacroDirective *MD, in MacroExpands()
|