Home
last modified time | relevance | path

Searched refs:MacroDirective (Results 1 – 20 of 20) 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.h824 MacroDirective *MD;
839 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
844 mutable llvm::PointerUnion<MacroDirective *, ModuleMacroInfo *> State;
861 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
873 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
876 O.State = (MacroDirective *)nullptr; in MacroState()
881 O.State = (MacroDirective *)nullptr;
891 MacroDirective *getLatest() const { in getLatest()
894 return State.get<MacroDirective*>(); in getLatest()
897 void setLatest(MacroDirective *MD) { in setLatest()
[all …]
H A DPPCallbacks.h28 class MacroDirective; variable
345 const MacroDirective *MD) { in MacroDefined()
356 const MacroDirective *Undef) { in MacroUndefined()
675 const MacroDirective *MD) override { in MacroDefined()
682 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.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.cpp817 MacroDirective *OldMD = nullptr; in LeaveSubmodule()
H A DPreprocessor.cpp367 const MacroDirective::DefInfo in getLastMacroWithSpelling()
H A DPPDirectives.cpp1783 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPublicDirective()
1810 MacroDirective *MD = getLocalMacroDirective(II); in HandleMacroPrivateDirective()
/freebsd/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/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/ExtractAPI/
H A DExtractAPIConsumer.cpp290 const MacroDirective *MD) override { in MacroDefined()
308 const MacroDirective *Undef) override { in MacroUndefined()
349 const MacroDirective *MD;
351 PendingMacro(const Token &MacroNameToken, const MacroDirective *MD) in PendingMacro()
H A DDeclarationFragments.cpp1330 const MacroDirective *MD) { in getFragmentsForMacro()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp237 const MacroDirective *MD) override;
242 const MacroDirective *Undef) override;
560 const MacroDirective *MD) { in MacroDefined()
583 const MacroDirective *Undef) { in MacroUndefined()
H A DASTUnit.cpp933 const MacroDirective *MD) override { in MacroDefined()
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DDeclarationFragments.h416 const MacroDirective *MD);
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp2396 MacroDirective *Latest = nullptr, *Earliest = nullptr; in resolvePendingMacro()
2399 MacroDirective *MD = nullptr; in resolvePendingMacro()
2401 MacroDirective::Kind K = (MacroDirective::Kind)Record[Idx++]; in resolvePendingMacro()
2403 case MacroDirective::MD_Define: { in resolvePendingMacro()
2408 case MacroDirective::MD_Undefine: in resolvePendingMacro()
2411 case MacroDirective::MD_Visibility: in resolvePendingMacro()
H A DASTWriter.cpp2460 static bool shouldIgnoreMacro(MacroDirective *MD, bool IsModule, in shouldIgnoreMacro()
2564 MacroDirective *MD = PP.getLocalMacroDirectiveHistory(Name); in WritePreprocessor()
2582 MD->getKind() == MacroDirective::MD_Undefine) in WritePreprocessor()