Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DMacroInfo.h313 class MacroDirective {
323 MacroDirective *Previous = nullptr;
342 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
351 void setPrevious(MacroDirective *Prev) { Previous = Prev; } in setPrevious()
354 const MacroDirective *getPrevious() const { return Previous; } in getPrevious()
357 MacroDirective *getPrevious() { return Previous; } in getPrevious()
407 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
428 static bool classof(const MacroDirective *) { return true; } in classof() argument
432 class DefMacroDirective : public MacroDirective {
437 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
[all …]
H A DPreprocessor.h848 MacroDirective *MD;
863 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
868 mutable llvm::PointerUnion<MacroDirective *, ModuleMacroInfo *> State;
885 ModuleMacroInfo(cast<MacroDirective *>(State)); in getModuleInfo()
897 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
900 O.State = (MacroDirective *)nullptr; in MacroState()
905 O.State = (MacroDirective *)nullptr;
915 MacroDirective *getLatest() const { in getLatest()
918 return cast<MacroDirective *>(State); in getLatest()
921 void setLatest(MacroDirective *MD) { in setLatest()
[all …]
H A DNoTrivialPPDirectiveTracer.h195 const MacroDirective *MD) override { in MacroDefined()
206 const MacroDirective *Undef) override { in MacroUndefined()
H A DPPCallbacks.h29 class MacroDirective; variable
346 const MacroDirective *MD) { in MacroDefined()
357 const MacroDirective *Undef) { in MacroUndefined()
676 const MacroDirective *MD) override { in MacroDefined()
683 const MacroDirective *Undef) override { in MacroUndefined()
H A DPreprocessingRecord.h528 void MacroDefined(const Token &Id, const MacroDirective *MD) override;
530 const MacroDirective *Undef) override;
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DMacroInfo.cpp193 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition()
194 MacroDirective *MD = this; in getDefinition()
214 const MacroDirective::DefInfo
215 MacroDirective::findDirectiveAtLoc(SourceLocation L, in findDirectiveAtLoc()
228 LLVM_DUMP_METHOD void MacroDirective::dump() const { in dump()
H A DPreprocessingRecord.cpp454 const MacroDirective *MD) { in MacroDefined()
465 const MacroDirective *Undef) { in MacroUndefined()
H A DPPMacroExpansion.cpp60 MacroDirective *
69 void Preprocessor::appendMacroDirective(IdentifierInfo *II, MacroDirective *MD){ in appendMacroDirective()
95 MacroDirective *ED, in setLoadedMacroDirective()
96 MacroDirective *MD) { in setLoadedMacroDirective()
H A DPPLexerChange.cpp811 MacroDirective *OldMD = nullptr; in LeaveSubmodule()
H A DPreprocessor.cpp365 const MacroDirective::DefInfo in getLastMacroWithSpelling()
H A DPPDirectives.cpp1808 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPublicDirective()
1835 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPrivateDirective()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexingAction.cpp38 const MacroDirective *MD) override { in MacroDefined()
45 const MacroDirective *Undef) override { in MacroUndefined()
210 MacroDirective::Kind DirectiveKind, in indexPreprocessorMacro()
221 if (DirectiveKind == MacroDirective::MD_Visibility) in indexPreprocessorMacro()
224 auto Role = DirectiveKind == MacroDirective::MD_Define in indexPreprocessorMacro()
249 indexPreprocessorMacro(M.first, MI, MacroDirective::MD_Define, in indexPreprocessorModuleMacros()
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp236 const MacroDirective *MD) override;
241 const MacroDirective *Undef) override;
559 const MacroDirective *MD) { in MacroDefined()
581 const MacroDirective *Undef) { in MacroUndefined()
H A DASTUnit.cpp934 const MacroDirective *MD) override { in MacroDefined()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp2563 MacroDirective *Latest = nullptr, *Earliest = nullptr; in resolvePendingMacro()
2566 MacroDirective *MD = nullptr; in resolvePendingMacro()
2568 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
2570 case MacroDirective::MD_Define: { in resolvePendingMacro()
2575 case MacroDirective::MD_Undefine: in resolvePendingMacro()
2578 case MacroDirective::MD_Visibility: in resolvePendingMacro()
H A DASTWriter.cpp2536 static bool shouldIgnoreMacro(MacroDirective *MD, bool IsModule, in shouldIgnoreMacro()
2640 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(Name); in WritePreprocessor()
2658 MD->getKind() == MacroDirective::MD_Undefine) in WritePreprocessor()