Home
last modified time | relevance | path

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

123

/external/llvm-project/clang/include/clang/Lex/
DMacroInfo.h290 class MacroDirective {
300 MacroDirective *Previous = nullptr;
316 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
325 void setPrevious(MacroDirective *Prev) { Previous = Prev; } in setPrevious()
328 const MacroDirective *getPrevious() const { return Previous; } in getPrevious()
331 MacroDirective *getPrevious() { return Previous; } in getPrevious()
381 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
402 static bool classof(const MacroDirective *) { return true; } in classof() argument
406 class DefMacroDirective : public MacroDirective {
411 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
[all …]
DPreprocessor.h577 MacroDirective *MD;
592 ModuleMacroInfo(MacroDirective *MD) : MD(MD) {} in ModuleMacroInfo()
597 mutable llvm::PointerUnion<MacroDirective *, ModuleMacroInfo *> State;
614 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
626 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
629 O.State = (MacroDirective *)nullptr; in MacroState()
634 O.State = (MacroDirective *)nullptr;
644 MacroDirective *getLatest() const { in getLatest()
647 return State.get<MacroDirective*>(); in getLatest()
650 void setLatest(MacroDirective *MD) { in setLatest()
[all …]
DPPCallbacks.h28 class MacroDirective; variable
287 const MacroDirective *MD) { in MacroDefined()
298 const MacroDirective *Undef) { in MacroUndefined()
545 const MacroDirective *MD) override { in MacroDefined()
552 const MacroDirective *Undef) override { in MacroUndefined()
DPreprocessingRecord.h528 void MacroDefined(const Token &Id, const MacroDirective *MD) override;
530 const MacroDirective *Undef) override;
/external/clang/include/clang/Lex/
DMacroInfo.h307 class MacroDirective {
313 MacroDirective *Previous;
329 MacroDirective(Kind K, SourceLocation Loc) in MacroDirective() function
339 void setPrevious(MacroDirective *Prev) { Previous = Prev; } in setPrevious()
342 const MacroDirective *getPrevious() const { return Previous; } in getPrevious()
345 MacroDirective *getPrevious() { return Previous; } in getPrevious()
394 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
414 static bool classof(const MacroDirective *) { return true; } in classof() argument
418 class DefMacroDirective : public MacroDirective {
423 : MacroDirective(MD_Define, Loc), Info(MI) { in DefMacroDirective()
[all …]
DPreprocessor.h375 ModuleMacroInfo(MacroDirective *MD) in ModuleMacroInfo()
379 MacroDirective *MD;
393 mutable llvm::PointerUnion<MacroDirective *, ModuleMacroInfo *> State;
408 ModuleMacroInfo(State.get<MacroDirective *>()); in getModuleInfo()
420 MacroState(MacroDirective *MD) : State(MD) {} in MacroState()
422 O.State = (MacroDirective *)nullptr; in MacroState()
426 O.State = (MacroDirective *)nullptr;
435 MacroDirective *getLatest() const { in getLatest()
438 return State.get<MacroDirective*>(); in getLatest()
440 void setLatest(MacroDirective *MD) { in setLatest()
[all …]
DPPCallbacks.h31 class MacroDirective; variable
248 const MacroDirective *MD) { in MacroDefined()
444 void MacroDefined(const Token &MacroNameTok, const MacroDirective *MD) override { in MacroDefined()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DMacroUsageCheck.h17 class MacroDirective; variable
39 void warnMacro(const MacroDirective *MD, StringRef MacroName);
40 void warnNaming(const MacroDirective *MD, StringRef MacroName);
DMacroUsageCheck.cpp39 const MacroDirective *MD) override { in MacroDefined()
79 void MacroUsageCheck::warnMacro(const MacroDirective *MD, StringRef MacroName) { in warnMacro()
97 void MacroUsageCheck::warnNaming(const MacroDirective *MD, in warnNaming()
/external/clang/lib/Lex/
DMacroInfo.cpp176 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition()
177 MacroDirective *MD = this; in getDefinition()
199 const MacroDirective::DefInfo
200 MacroDirective::findDirectiveAtLoc(SourceLocation L, SourceManager &SM) const { in findDirectiveAtLoc()
212 LLVM_DUMP_METHOD void MacroDirective::dump() const { in dump()
/external/llvm-project/clang/lib/Lex/
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()
DPreprocessingRecord.cpp445 const MacroDirective *MD) { in MacroDefined()
456 const MacroDirective *Undef) { in MacroUndefined()
/external/llvm-project/clang-tools-extra/docs/
Dpp-trace.rst120 In all but one case (MacroDirective) the "Argument" scalars have the same
582 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
591 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
633 MacroDirective: MD_Define
646 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
654 MacroDirective: (null)
733 MacroDirective (MD_Define|MD_Undefine|MD_Visibility) const MacroDirective
[all …]
/external/llvm-project/clang/lib/CodeGen/
DMacroPPCallbacks.h111 const MacroDirective *MD) override;
117 const MacroDirective *Undef) override;
DMacroPPCallbacks.cpp179 const MacroDirective *MD) { in MacroDefined()
193 const MacroDirective *Undef) { in MacroUndefined()
/external/llvm-project/clang-tools-extra/clangd/
DCollectMacros.h51 void MacroDefined(const Token &MacroName, const MacroDirective *MD) override { in MacroDefined()
62 const clang::MacroDirective *Undef) override { in MacroUndefined()
/external/llvm-project/clang-tools-extra/pp-trace/
DPPCallbacksTracker.h133 const MacroDirective *MD) override;
135 const MacroDirective *Undef) override;
201 void appendArgument(const char *Name, const MacroDirective *Value);
DPPCallbacksTracker.cpp332 const MacroDirective *MacroDirective) { in MacroDefined() argument
335 appendArgument("MacroDirective", MacroDirective); in MacroDefined()
341 const MacroDirective *Undef) { in MacroUndefined()
565 const MacroDirective *Value) { in appendArgument()
/external/llvm-project/clang/lib/Index/
DIndexingAction.cpp40 const MacroDirective *MD) override { in MacroDefined()
47 const MacroDirective *Undef) override { in MacroUndefined()
168 if (MacroDirective *MD = M.second.getLatest()) { in indexPreprocessorMacros()
/external/llvm-project/clang-tools-extra/clang-tidy/
DExpandModularHeadersPPCallbacks.h105 const MacroDirective *MD) override;
107 const MacroDirective *Undef) override;
DExpandModularHeadersPPCallbacks.cpp263 const MacroDirective *MD) { in MacroDefined()
267 const Token &, const MacroDefinition &, const MacroDirective *Undef) { in MacroUndefined()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllMacros.h33 const MacroDirective *MD) override;
DFindAllMacros.cpp35 const MacroDirective *MD) { in MacroDefined()
/external/llvm-project/clang-tools-extra/clang-tidy/google/
DUpgradeGoogletestCaseCheck.cpp57 const MacroDirective *Undef) override { in MacroUndefined()
63 const MacroDirective *MD) override { in MacroDefined()
/external/llvm-project/clang/lib/Frontend/
DPrintPreprocessedOutput.cpp175 const MacroDirective *MD) override;
180 const MacroDirective *Undef) override;
410 const MacroDirective *MD) { in MacroDefined()
424 const MacroDirective *Undef) { in MacroUndefined()

123