Home
last modified time | relevance | path

Searched refs:MacroDirective (Results 1 – 25 of 26) sorted by relevance

12

/external/clang/include/clang/Lex/
DMacroInfo.h314 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 …]
DPPCallbacks.h30 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 …]
DPreprocessingRecord.h490 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,
DPreprocessor.h359 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 …]
DPPConditionalDirectiveRecord.h94 const MacroDirective *MD) override;
96 const MacroDirective *MD) override;
/external/clang/lib/Lex/
DMacroInfo.cpp172 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()
DPreprocessingRecord.cpp383 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()
DPPConditionalDirectiveRecord.cpp87 const MacroDirective *MD) { in Ifdef()
94 const MacroDirective *MD) { in Ifndef()
DPPMacroExpansion.cpp36 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()
DPreprocessor.cpp324 const MacroDirective::DefInfo in getLastMacroWithSpelling()
625 if (MacroDirective *MD = getMacroDirective(&II)) { in HandleIdentifier()
DPPExpressions.cpp114 MacroDirective *Macro = nullptr; in EvaluateDefined()
147 MacroDirective *MD = Macro; in EvaluateDefined()
DPPDirectives.cpp1293 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()
DPragma.cpp593 if (MacroDirective *CurrentMD = getMacroDirective(IdentInfo)) { in HandlePragmaPopMacro()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp169 const MacroDirective *MD) override;
173 const MacroDirective *MD) override;
351 const MacroDirective *MD) { in MacroDefined()
364 const MacroDirective *MD) { in MacroUndefined()
DCompilerInstance.cpp1091 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()
DASTUnit.cpp768 const MacroDirective *MD) override { in MacroDefined()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp262 const MacroDirective *MD) override { in MacroDefined()
267 void MacroExpands(const Token &MacroNameTok, const MacroDirective *MD, in MacroExpands()
/external/clang/lib/Serialization/
DASTWriter.cpp2015 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 …]
DASTReader.cpp1800 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/
DIndexing.cpp282 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()
DCIndex.cpp7147 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/
DSemaFixItUtils.cpp167 MacroDirective *Macro = S.PP.getMacroDirectiveHistory(II); in isMacroDefined()
/external/clang/include/clang/Serialization/
DASTWriter.h53 class MacroDirective; variable
DASTReader.h75 class MacroDirective; variable
/external/clang/lib/ARCMigrate/
DARCMT.cpp435 void MacroExpands(const Token &MacroNameTok, const MacroDirective *MD, in MacroExpands()

12