Home
last modified time | relevance | path

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

/freebsd-14.2/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
432 class DefMacroDirective : public MacroDirective {
437 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
447 static bool classof(const MacroDirective *MD) { in classof()
458 : MacroDirective(MD_Undefine, UndefLoc) { in UndefMacroDirective()
462 static bool classof(const MacroDirective *MD) { in classof()
473 : MacroDirective(MD_Visibility, Loc) { in VisibilityMacroDirective()
481 static bool classof(const MacroDirective *MD) { in classof()
[all …]
H A DPreprocessor.h804 MacroDirective *MD;
819 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
841 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
853 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
856 O.State = (MacroDirective *)nullptr; in MacroState()
861 O.State = (MacroDirective *)nullptr;
871 MacroDirective *getLatest() const { in getLatest()
874 return State.get<MacroDirective*>(); in getLatest()
877 void setLatest(MacroDirective *MD) { in setLatest()
1366 MacroDirective::DefInfo DI; in getMacroDefinitionAtLoc()
[all …]
H A DPPCallbacks.h28 class MacroDirective; variable
313 const MacroDirective *MD) { in MacroDefined()
324 const MacroDirective *Undef) { in MacroUndefined()
617 const MacroDirective *MD) override { in MacroDefined()
624 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-14.2/contrib/llvm-project/clang/lib/Lex/
H A DMacroInfo.cpp198 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition()
199 MacroDirective *MD = this; in getDefinition()
219 const MacroDirective::DefInfo
220 MacroDirective::findDirectiveAtLoc(SourceLocation L, in findDirectiveAtLoc()
233 LLVM_DUMP_METHOD void MacroDirective::dump() const { in dump()
H A DPreprocessingRecord.cpp457 const MacroDirective *MD) { in MacroDefined()
468 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.cpp818 MacroDirective *OldMD = nullptr; in LeaveSubmodule()
H A DPPDirectives.cpp1706 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPublicDirective()
1733 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPrivateDirective()
H A DPreprocessor.cpp363 const MacroDirective::DefInfo in getLastMacroWithSpelling()
/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h110 const MacroDirective *MD) override;
116 const MacroDirective *Undef) override;
H A DMacroPPCallbacks.cpp179 const MacroDirective *MD) { in MacroDefined()
193 const MacroDirective *Undef) { in MacroUndefined()
/freebsd-14.2/contrib/llvm-project/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp289 const MacroDirective *MD) override { in MacroDefined()
307 const MacroDirective *Undef) override { in MacroUndefined()
347 const MacroDirective *MD;
349 PendingMacro(const Token &MacroNameToken, const MacroDirective *MD) in PendingMacro()
H A DDeclarationFragments.cpp1167 const MacroDirective *MD) { in getFragmentsForMacro()
/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp225 const MacroDirective *MD) override;
230 const MacroDirective *Undef) override;
477 const MacroDirective *MD) { in MacroDefined()
500 const MacroDirective *Undef) { in MacroUndefined()
H A DASTUnit.cpp921 const MacroDirective *MD) override { in MacroDefined()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DDeclarationFragments.h378 const MacroDirective *MD);
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp2355 MacroDirective *Latest = nullptr, *Earliest = nullptr; in resolvePendingMacro()
2358 MacroDirective *MD = nullptr; in resolvePendingMacro()
2360 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
2362 case MacroDirective::MD_Define: { in resolvePendingMacro()
2367 case MacroDirective::MD_Undefine: in resolvePendingMacro()
2370 case MacroDirective::MD_Visibility: in resolvePendingMacro()
H A DASTWriter.cpp2332 static bool shouldIgnoreMacro(MacroDirective *MD, bool IsModule, in shouldIgnoreMacro()
2430 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(Name); in WritePreprocessor()
2448 MD->getKind() == MacroDirective::MD_Undefine) in WritePreprocessor()