Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/include/clang/Lex/
H A DMacroInfo.h290 class MacroDirective {
300 MacroDirective *Previous = nullptr;
316 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
406 class DefMacroDirective : public MacroDirective {
411 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
421 static bool classof(const MacroDirective *MD) { in classof()
432 : MacroDirective(MD_Undefine, UndefLoc) { in UndefMacroDirective()
436 static bool classof(const MacroDirective *MD) { in classof()
447 : MacroDirective(MD_Visibility, Loc) { in VisibilityMacroDirective()
455 static bool classof(const MacroDirective *MD) { in classof()
[all …]
H A DPreprocessor.h579 MacroDirective *MD;
594 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
616 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
628 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
631 O.State = (MacroDirective *)nullptr; in MacroState()
636 O.State = (MacroDirective *)nullptr;
646 MacroDirective *getLatest() const { in getLatest()
649 return State.get<MacroDirective*>(); in getLatest()
652 void setLatest(MacroDirective *MD) { in setLatest()
1094 MacroDirective::DefInfo DI; in getMacroDefinitionAtLoc()
[all …]
H A DPPCallbacks.h28 class MacroDirective; variable
291 const MacroDirective *MD) { in MacroDefined()
302 const MacroDirective *Undef) { in MacroUndefined()
581 const MacroDirective *MD) override { in MacroDefined()
588 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-13.1/contrib/llvm-project/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.cpp462 const MacroDirective *MD) { in MacroDefined()
473 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.cpp805 MacroDirective *OldMD = nullptr; in LeaveSubmodule()
H A DPPDirectives.cpp1541 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPublicDirective()
1568 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPrivateDirective()
H A DPreprocessor.cpp358 const MacroDirective::DefInfo in getLastMacroWithSpelling()
/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DIndexingAction.cpp40 const MacroDirective *MD) override { in MacroDefined()
47 const MacroDirective *Undef) override { in MacroUndefined()
212 MacroDirective::Kind DirectiveKind, in indexPreprocessorMacro()
223 if (DirectiveKind == MacroDirective::MD_Visibility) in indexPreprocessorMacro()
226 auto Role = DirectiveKind == MacroDirective::MD_Define in indexPreprocessorMacro()
251 indexPreprocessorMacro(M.first, MI, MacroDirective::MD_Define, in indexPreprocessorModuleMacros()
/freebsd-13.1/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-13.1/contrib/llvm-project/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.cpp886 const MacroDirective *MD) override { in MacroDefined()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp2191 MacroDirective *Latest = nullptr, *Earliest = nullptr; in resolvePendingMacro()
2194 MacroDirective *MD = nullptr; in resolvePendingMacro()
2196 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
2198 case MacroDirective::MD_Define: { in resolvePendingMacro()
2203 case MacroDirective::MD_Undefine: in resolvePendingMacro()
2206 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()