Collects macro references (e.g.
More...
#include <CollectMacros.h>
|
| 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 |
void | doneParse () |
Collects macro references (e.g.
definitions, expansions) in the main file. It is used to:
- collect macros in the preamble section of the main file (in Preamble.cpp)
- collect macros after the preamble of the main file (in ParsedAST.cpp)
Definition at line 53 of file CollectMacros.h.
◆ CollectMainFileMacros()
clang::clangd::CollectMainFileMacros::CollectMainFileMacros |
( |
const Preprocessor & | PP, |
|
|
MainFileMacros & | Out ) |
|
inlineexplicit |
◆ Defined()
void clang::clangd::CollectMainFileMacros::Defined |
( |
const Token & | MacroName, |
|
|
const MacroDefinition & | MD, |
|
|
SourceRange | Range ) |
|
override |
◆ doneParse()
void clang::clangd::CollectMainFileMacros::doneParse |
( |
| ) |
|
|
inline |
◆ Elifdef()
void clang::clangd::CollectMainFileMacros::Elifdef |
( |
SourceLocation | Loc, |
|
|
const Token & | MacroNameTok, |
|
|
const MacroDefinition & | MD ) |
|
override |
◆ Elifndef()
void clang::clangd::CollectMainFileMacros::Elifndef |
( |
SourceLocation | Loc, |
|
|
const Token & | MacroNameTok, |
|
|
const MacroDefinition & | MD ) |
|
override |
◆ FileChanged()
void clang::clangd::CollectMainFileMacros::FileChanged |
( |
SourceLocation | Loc, |
|
|
FileChangeReason | , |
|
|
SrcMgr::CharacteristicKind | , |
|
|
FileID | ) |
|
override |
◆ Ifdef()
void clang::clangd::CollectMainFileMacros::Ifdef |
( |
SourceLocation | Loc, |
|
|
const Token & | MacroName, |
|
|
const MacroDefinition & | MD ) |
|
override |
◆ Ifndef()
void clang::clangd::CollectMainFileMacros::Ifndef |
( |
SourceLocation | Loc, |
|
|
const Token & | MacroName, |
|
|
const MacroDefinition & | MD ) |
|
override |
◆ MacroDefined()
void clang::clangd::CollectMainFileMacros::MacroDefined |
( |
const Token & | MacroName, |
|
|
const MacroDirective * | MD ) |
|
override |
◆ MacroExpands()
void clang::clangd::CollectMainFileMacros::MacroExpands |
( |
const Token & | MacroName, |
|
|
const MacroDefinition & | MD, |
|
|
SourceRange | Range, |
|
|
const MacroArgs * | Args ) |
|
override |
◆ MacroUndefined()
void clang::clangd::CollectMainFileMacros::MacroUndefined |
( |
const clang::Token & | MacroName, |
|
|
const clang::MacroDefinition & | MD, |
|
|
const clang::MacroDirective * | Undef ) |
|
override |
◆ SourceRangeSkipped()
void clang::clangd::CollectMainFileMacros::SourceRangeSkipped |
( |
SourceRange | R, |
|
|
SourceLocation | EndifLoc ) |
|
override |
The documentation for this class was generated from the following files: