Home
last modified time | relevance | path

Searched refs:MacroDefinition (Results 1 – 15 of 15) sorted by relevance

/external/clang/include/clang/Lex/
DPreprocessingRecord.h43 class MacroDefinition; variable
138 class MacroDefinition : public PreprocessingDirective {
143 explicit MacroDefinition(const IdentifierInfo *Name, SourceRange Range) in MacroDefinition() function
162 llvm::PointerUnion<IdentifierInfo *, MacroDefinition *> NameOrDef;
169 MacroExpansion(MacroDefinition *Definition, SourceRange Range) in MacroExpansion()
178 if (MacroDefinition *Def = getDefinition()) in getName()
185 MacroDefinition *getDefinition() const { in getDefinition()
186 return NameOrDef.dyn_cast<MacroDefinition *>(); in getDefinition()
333 llvm::DenseMap<const MacroInfo *, MacroDefinition *> MacroDefinitions;
364 void RegisterMacroDefinition(MacroInfo *Macro, MacroDefinition *Def);
[all …]
/external/clang/tools/libclang/
DCIndexer.h30 class MacroDefinition; variable
99 const MacroInfo *getMacroInfo(const MacroDefinition *MacroDef,
105 MacroDefinition *checkForMacroInMacroDefinition(const MacroInfo *MI,
112 MacroDefinition *checkForMacroInMacroDefinition(const MacroInfo *MI,
DCXCursor.h33 class MacroDefinition; variable
148 CXCursor MakeMacroDefinitionCursor(const MacroDefinition *,
153 const MacroDefinition *getCursorMacroDefinition(CXCursor C);
161 CXCursor MakeMacroExpansionCursor(MacroDefinition *, SourceLocation Loc,
177 const MacroDefinition *getAsMacroDefinition() const { in getAsMacroDefinition()
179 return static_cast<const MacroDefinition *>(C.data[0]); in getAsMacroDefinition()
196 const MacroDefinition *getDefinition() const;
DCXCursor.cpp753 CXCursor cxcursor::MakeMacroDefinitionCursor(const MacroDefinition *MI, in MakeMacroDefinitionCursor()
759 const MacroDefinition *cxcursor::getCursorMacroDefinition(CXCursor C) { in getCursorMacroDefinition()
761 return static_cast<const MacroDefinition *>(C.data[0]); in getCursorMacroDefinition()
770 CXCursor cxcursor::MakeMacroExpansionCursor(MacroDefinition *MI, in MakeMacroExpansionCursor()
783 const MacroDefinition *cxcursor::MacroExpansionCursor::getDefinition() const { in getDefinition()
1296 const MacroDefinition *definition = getCursorMacroDefinition(cursor); in clang_getCursorCompletionString()
DCIndex.cpp461 if (MacroDefinition *MD = dyn_cast<MacroDefinition>(PPE)) { in visitPreprocessedEntities()
571 if (MacroDefinition *MacroDef = in VisitChildren()
4892 if (const MacroDefinition *Def = getCursorMacroExpansion(C).getDefinition()) in clang_getCursorReferenced()
6067 MacroDefinition *MacroDef = checkForMacroInMacroDefinition(MI,Tok,TU); in annotatePreprocessorTokens()
7159 const MacroInfo *cxindex::getMacroInfo(const MacroDefinition *MacroDef, in getMacroInfo()
7170 MacroDefinition *cxindex::checkForMacroInMacroDefinition(const MacroInfo *MI, in checkForMacroInMacroDefinition()
7211 MacroDefinition *cxindex::checkForMacroInMacroDefinition(const MacroInfo *MI, in checkForMacroInMacroDefinition()
/external/clang/lib/Lex/
DPreprocessingRecord.cpp249 if (isa<MacroDefinition>(Entity)) { in addPreprocessedEntity()
321 MacroDefinition *Def) { in RegisterMacroDefinition()
358 MacroDefinition *PreprocessingRecord::findMacroDefinition(const MacroInfo *MI) { in findMacroDefinition()
359 llvm::DenseMap<const MacroInfo *, MacroDefinition *>::iterator Pos in findMacroDefinition()
377 else if (MacroDefinition *Def = findMacroDefinition(MI)) in addMacroExpansion()
421 MacroDefinition *Def in MacroDefined()
422 = new (*this) MacroDefinition(Id.getIdentifierInfo(), R); in MacroDefined()
/external/clang/include/clang/Index/
DUSRGeneration.h18 class MacroDefinition; variable
55 bool generateUSRForMacro(const MacroDefinition *MD, const SourceManager &SM,
/external/clang/include/clang/Serialization/
DASTDeserializationListener.h26 class MacroDefinition; variable
52 MacroDefinition *MD) { } in MacroDefinitionRead()
DASTWriter.h52 class MacroDefinition; variable
287 llvm::DenseMap<const MacroDefinition *, serialization::PreprocessedEntityID>
830 MacroDefinition *MD) override;
DASTReader.h74 class MacroDefinition; variable
/external/clang/lib/Frontend/
DMultiplexConsumer.cpp40 MacroDefinition *MD) override;
81 serialization::PreprocessedEntityID ID, MacroDefinition *MD) { in MacroDefinitionRead()
DFrontendAction.cpp74 MacroDefinition *MD) override { in MacroDefinitionRead()
/external/clang/lib/Index/
DUSRGeneration.cpp850 bool clang::index::generateUSRForMacro(const MacroDefinition *MD, in generateUSRForMacro()
/external/clang/lib/Serialization/
DASTReader.cpp1479 MacroDefinition *PPDef = in ReadMacroRecord()
1480 cast_or_null<MacroDefinition>(PPRec.getPreprocessedEntity(PPID)); in ReadMacroRecord()
4937 MacroDefinition *Def = nullptr; in ReadPreprocessedEntity()
4943 Def =cast<MacroDefinition>(PPRec.getLoadedPreprocessedEntity(GlobalID-1)); in ReadPreprocessedEntity()
4959 MacroDefinition *MD in ReadPreprocessedEntity()
4960 = new (PPRec) MacroDefinition(II, Range); in ReadPreprocessedEntity()
DASTWriter.cpp2261 if (MacroDefinition *MD = dyn_cast<MacroDefinition>(*E)) { in WritePreprocessorDetail()
5799 MacroDefinition *MD) { in MacroDefinitionRead()