Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/
H A DMacroInfo.h290 class MacroDirective {
300 MacroDirective *Previous = nullptr;
316 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
325 void setPrevious(MacroDirective *Prev) { Previous = Prev; } in setPrevious()
328 const MacroDirective *getPrevious() const { return Previous; } in getPrevious()
331 MacroDirective *getPrevious() { return Previous; } in getPrevious()
381 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
402 static bool classof(const MacroDirective *) { return true; } in classof() argument
406 class DefMacroDirective : public MacroDirective {
411 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
[all …]
H A DPreprocessor.h577 MacroDirective *MD;
592 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
597 mutable llvm::PointerUnion<MacroDirective *, ModuleMacroInfo *> State;
614 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
626 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
629 O.State = (MacroDirective *)nullptr; in MacroState()
634 O.State = (MacroDirective *)nullptr;
644 MacroDirective *getLatest() const { in getLatest()
647 return State.get<MacroDirective*>(); in getLatest()
650 void setLatest(MacroDirective *MD) { in setLatest()
[all …]
H A DPPCallbacks.h28 class MacroDirective; variable
287 const MacroDirective *MD) { in MacroDefined()
298 const MacroDirective *Undef) { in MacroUndefined()
545 const MacroDirective *MD) override { in MacroDefined()
552 const MacroDirective *Undef) override { in MacroUndefined()
H A DPreprocessingRecord.h528 void MacroDefined(const Token &Id, const MacroDirective *MD) override;
530 const MacroDirective *Undef) override;
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DMacroInfo.cpp178 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition()
179 MacroDirective *MD = this; in getDefinition()
201 const MacroDirective::DefInfo
202 MacroDirective::findDirectiveAtLoc(SourceLocation L, in findDirectiveAtLoc()
215 LLVM_DUMP_METHOD void MacroDirective::dump() const { in dump()
H A DPreprocessingRecord.cpp445 const MacroDirective *MD) { in MacroDefined()
456 const MacroDirective *Undef) { in MacroUndefined()
H A DPPMacroExpansion.cpp62 MacroDirective *
71 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective()
97 MacroDirective *ED, in setLoadedMacroDirective()
98 MacroDirective *MD) { in setLoadedMacroDirective()
H A DPPLexerChange.cpp764 MacroDirective *OldMD = nullptr; in LeaveSubmodule()
H A DPPDirectives.cpp1475 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPublicDirective()
1502 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPrivateDirective()
H A DPreprocessor.cpp358 const MacroDirective::DefInfo in getLastMacroWithSpelling()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/
H A DIndexingAction.cpp40 const MacroDirective *MD) override { in MacroDefined()
47 const MacroDirective *Undef) override { in MacroUndefined()
193 MacroDirective::Kind DirectiveKind, in indexPreprocessorMacro()
204 if (DirectiveKind == MacroDirective::MD_Visibility) in indexPreprocessorMacro()
207 auto Role = DirectiveKind == MacroDirective::MD_Define in indexPreprocessorMacro()
232 indexPreprocessorMacro(M.first, MI, MacroDirective::MD_Define, in indexPreprocessorModuleMacros()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DMacroPPCallbacks.h111 const MacroDirective *MD) override;
117 const MacroDirective *Undef) override;
H A DMacroPPCallbacks.cpp179 const MacroDirective *MD) { in MacroDefined()
193 const MacroDirective *Undef) { in MacroUndefined()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp175 const MacroDirective *MD) override;
180 const MacroDirective *Undef) override;
410 const MacroDirective *MD) { in MacroDefined()
424 const MacroDirective *Undef) { in MacroUndefined()
H A DASTUnit.cpp885 const MacroDirective *MD) override { in MacroDefined()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DIndexing.cpp275 void MacroDefined(const Token &Id, const MacroDirective *MD) override {} in MacroDefined()
281 const MacroDirective *UD) override {} in MacroUndefined()
H A DCIndex.cpp9010 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(&II); in getMacroInfo()
9012 for (MacroDirective::DefInfo Def = MD->getDefinition(); Def; in getMacroInfo()
9067 MacroDirective *InnerMD = PP.getLocalMacroDirectiveHistory(&II); in checkForMacroInMacroDefinition()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A DASTReader.cpp2189 MacroDirective *Latest = nullptr, *Earliest = nullptr; in resolvePendingMacro()
2192 MacroDirective *MD = nullptr; in resolvePendingMacro()
2194 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
2196 case MacroDirective::MD_Define: { in resolvePendingMacro()
2201 case MacroDirective::MD_Undefine: in resolvePendingMacro()
2204 case MacroDirective::MD_Visibility: in resolvePendingMacro()
H A DASTWriter.cpp2129 static bool shouldIgnoreMacro(MacroDirective *MD, bool IsModule, in shouldIgnoreMacro()
2213 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(Name); in WritePreprocessor()