clang-tools 20.0.0git
|
Collects macro references (e.g. More...
#include <CollectMacros.h>
Public Member Functions | |
CollectMainFileMacros (const Preprocessor &PP, MainFileMacros &Out) | |
void | FileChanged (SourceLocation Loc, FileChangeReason, SrcMgr::CharacteristicKind, FileID) override |
void | MacroDefined (const Token &MacroName, const MacroDirective *MD) override |
void | MacroExpands (const Token &MacroName, const MacroDefinition &MD, SourceRange Range, const MacroArgs *Args) override |
void | MacroUndefined (const clang::Token &MacroName, const clang::MacroDefinition &MD, const clang::MacroDirective *Undef) override |
void | Ifdef (SourceLocation Loc, const Token &MacroName, const MacroDefinition &MD) override |
void | Ifndef (SourceLocation Loc, const Token &MacroName, const MacroDefinition &MD) override |
void | Elifdef (SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override |
void | Elifndef (SourceLocation Loc, const Token &MacroNameTok, const MacroDefinition &MD) override |
void | Defined (const Token &MacroName, const MacroDefinition &MD, SourceRange Range) override |
void | SourceRangeSkipped (SourceRange R, SourceLocation EndifLoc) override |
Collects macro references (e.g.
definitions, expansions) in the main file. It is used to:
Definition at line 52 of file CollectMacros.h.
|
inlineexplicit |
Definition at line 54 of file CollectMacros.h.
References Out.
|
override |
Definition at line 87 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 75 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 81 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 45 of file CollectMacros.cpp.
References clang::clangd::isInsideMainFile(), and Loc.
|
override |
Definition at line 63 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 69 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 130 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 50 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 57 of file CollectMacros.cpp.
References MacroName.
|
override |
Definition at line 94 of file CollectMacros.cpp.
References clang::clangd::MainFileMacros::SkippedRanges, and clang::clangd::sourceLocToPosition().