Home
last modified time | relevance | path

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

/external/clang/include/clang/Lex/
DMacroInfo.h307 class MacroDirective {
313 MacroDirective *Previous;
329 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
339 void setPrevious(MacroDirective *Prev) { Previous = Prev; } in setPrevious()
342 const MacroDirective *getPrevious() const { return Previous; } in getPrevious()
345 MacroDirective *getPrevious() { return Previous; } in getPrevious()
394 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
414 static bool classof(const MacroDirective *) { return true; } in classof() argument
418 class DefMacroDirective : public MacroDirective {
423 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
[all …]
DPreprocessor.h375 ModuleMacroInfo(MacroDirective *MD) in ModuleMacroInfo()
379 MacroDirective *MD;
393 mutable llvm::PointerUnion<MacroDirective *, ModuleMacroInfo *> State;
408 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
420 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
422 O.State = (MacroDirective *)nullptr; in MacroState()
426 O.State = (MacroDirective *)nullptr;
435 MacroDirective *getLatest() const { in getLatest()
438 return State.get<MacroDirective*>(); in getLatest()
440 void setLatest(MacroDirective *MD) { in setLatest()
[all …]
DPPCallbacks.h31 class MacroDirective; variable
248 const MacroDirective *MD) { in MacroDefined()
444 void MacroDefined(const Token &MacroNameTok, const MacroDirective *MD) override { in MacroDefined()
DPreprocessingRecord.h491 void MacroDefined(const Token &Id, const MacroDirective *MD) override;
/external/clang/lib/Lex/
DMacroInfo.cpp176 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition()
177 MacroDirective *MD = this; in getDefinition()
199 const MacroDirective::DefInfo
200 MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const { in findDirectiveAtLoc()
212 LLVM_DUMP_METHOD void MacroDirective::dump() const { in dump()
DPPMacroExpansion.cpp36 MacroDirective *
45 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective()
71 MacroDirective *MD) { in setLoadedMacroDirective()
DPreprocessingRecord.cpp420 const MacroDirective *MD) { in MacroDefined()
DPPLexerChange.cpp722 MacroDirective *OldMD = nullptr; in LeaveSubmodule()
DPreprocessor.cpp341 const MacroDirective::DefInfo in getLastMacroWithSpelling()
DPPDirectives.cpp1431 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPublicDirective()
1458 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPrivateDirective()
/external/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp168 const MacroDirective *MD) override;
362 const MacroDirective *MD) { in MacroDefined()
DASTUnit.cpp772 const MacroDirective *MD) override { in MacroDefined()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp264 const MacroDirective *MD) override { in MacroDefined()
/external/clang/include/clang/Serialization/
DASTWriter.h55 class MacroDirective; variable
DASTReader.h79 class MacroDirective; variable
/external/clang/tools/libclang/
DIndexing.cpp260 void MacroDefined(const Token &Id, const MacroDirective *MD) override {} in MacroDefined()
DCIndex.cpp7843 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(&II); in getMacroInfo()
7845 for (MacroDirective::DefInfo in getMacroInfo()
7900 MacroDirective *InnerMD = PP.getLocalMacroDirectiveHistory(&II); in checkForMacroInMacroDefinition()
/external/clang/lib/Serialization/
DASTReader.cpp1868 MacroDirective *Latest = nullptr, *Earliest = nullptr; in resolvePendingMacro()
1871 MacroDirective *MD = nullptr; in resolvePendingMacro()
1873 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
1875 case MacroDirective::MD_Define: { in resolvePendingMacro()
1880 case MacroDirective::MD_Undefine: { in resolvePendingMacro()
1884 case MacroDirective::MD_Visibility: in resolvePendingMacro()
DASTWriter.cpp2109 static bool shouldIgnoreMacro(MacroDirective *MD, bool IsModule, in shouldIgnoreMacro()
2170 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(Name); in WritePreprocessor()