Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/include/clang/Lex/
H A DMacroInfo.h314 class MacroDirective {
324 MacroDirective *Previous = nullptr;
340 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
430 class DefMacroDirective : public MacroDirective {
435 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
445 static bool classof(const MacroDirective *MD) { in classof()
456 : MacroDirective(MD_Undefine, UndefLoc) { in UndefMacroDirective()
460 static bool classof(const MacroDirective *MD) { in classof()
471 : MacroDirective(MD_Visibility, Loc) { in VisibilityMacroDirective()
479 static bool classof(const MacroDirective *MD) { in classof()
[all …]
H A DPreprocessor.h674 MacroDirective *MD;
689 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
711 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
723 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
726 O.State = (MacroDirective *)nullptr; in MacroState()
731 O.State = (MacroDirective *)nullptr;
741 MacroDirective *getLatest() const { in getLatest()
744 return State.get<MacroDirective*>(); in getLatest()
747 void setLatest(MacroDirective *MD) { in setLatest()
1240 MacroDirective::DefInfo DI; in getMacroDefinitionAtLoc()
[all …]
H A DPPCallbacks.h28 class MacroDirective; variable
307 const MacroDirective *MD) { in MacroDefined()
318 const MacroDirective *Undef) { in MacroUndefined()
603 const MacroDirective *MD) override { in MacroDefined()
610 const MacroDirective *Undef) override { in MacroUndefined()
H A DPreprocessingRecord.h526 void MacroDefined(const Token &Id, const MacroDirective *MD) override;
528 const MacroDirective *Undef) override;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DMacroUsageCheck.h17 class MacroDirective; variable
39 void warnMacro(const MacroDirective *MD, StringRef MacroName);
40 void warnNaming(const MacroDirective *MD, StringRef MacroName);
H A DMacroUsageCheck.cpp39 const MacroDirective *MD) override { in MacroDefined()
81 void MacroUsageCheck::warnMacro(const MacroDirective *MD, StringRef MacroName) { in warnMacro()
102 void MacroUsageCheck::warnNaming(const MacroDirective *MD, in warnNaming()
/llvm-project-15.0.7/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.cpp463 const MacroDirective *MD) { in MacroDefined()
474 const MacroDirective *Undef) { in MacroUndefined()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DDuplicateIncludeCheck.cpp56 const MacroDirective *MD) override;
59 const MacroDirective *Undef) override;
97 const MacroDirective *MD) { in MacroDefined()
103 const MacroDirective *Undef) { in MacroUndefined()
/llvm-project-15.0.7/clang-tools-extra/docs/
H A Dpp-trace.rst562 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
571 MacroDirective: MD_Define
586 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
593 MacroDirective: MD_Define
606 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
613 MacroDirective: MD_Define
626 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
634 MacroDirective: (null)
713 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
721 MacroDirective: MD_Define
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMacroToEnumCheck.cpp86 EnumMacro(Token Name, const MacroDirective *Directive) in EnumMacro()
90 const MacroDirective *Directive;
130 const MacroDirective *MD) override;
134 const MacroDirective *Undef) override;
198 bool isConsecutiveMacro(const MacroDirective *MD) const;
199 void rememberLastMacroLocation(const MacroDirective *MD) { in rememberLastMacroLocation()
229 bool MacroToEnumCallbacks::isConsecutiveMacro(const MacroDirective *MD) const { in isConsecutiveMacro()
338 const MacroDirective *MD) { in MacroDefined()
373 const MacroDirective *Undef) { in MacroUndefined()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DCollectMacros.h54 void MacroDefined(const Token &MacroName, const MacroDirective *MD) override { in MacroDefined()
65 const clang::MacroDirective *Undef) override { in MacroUndefined()
/llvm-project-15.0.7/clang-tools-extra/pp-trace/
H A DPPCallbacksTracker.h132 const MacroDirective *MD) override;
134 const MacroDirective *Undef) override;
201 void appendArgument(const char *Name, const MacroDirective *Value);
H A DPPCallbacksTracker.cpp329 const MacroDirective *MacroDirective) { in MacroDefined() argument
332 appendArgument("MacroDirective", MacroDirective); in MacroDefined()
338 const MacroDirective *Undef) { in MacroUndefined()
566 const MacroDirective *Value) { in appendArgument()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/
H A DExpandModularHeadersPPCallbacks.h107 const MacroDirective *MD) override;
109 const MacroDirective *Undef) override;
H A DExpandModularHeadersPPCallbacks.cpp265 const MacroDirective *MD) { in MacroDefined()
269 const Token &, const MacroDefinition &, const MacroDirective *Undef) { in MacroUndefined()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllMacros.h33 const MacroDirective *MD) override;
H A DFindAllMacros.cpp35 const MacroDirective *MD) { in MacroDefined()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DUpgradeGoogletestCaseCheck.cpp57 const MacroDirective *Undef) override { in MacroUndefined()
63 const MacroDirective *MD) override { in MacroDefined()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DPrintPreprocessedOutput.cpp219 const MacroDirective *MD) override;
224 const MacroDirective *Undef) override;
470 const MacroDirective *MD) { in MacroDefined()
493 const MacroDirective *Undef) { in MacroUndefined()
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp803 const MacroDirective *MD) override { in MacroDefined()
821 const MacroDirective *Undef) override { in MacroUndefined()
860 const MacroDirective *MD;
862 PendingMacro(const Token &MacroNameToken, const MacroDirective *MD) in PendingMacro()
/llvm-project-15.0.7/clang/include/clang/ExtractAPI/
H A DDeclarationFragments.h236 const MacroDirective *MD);

12