clang 20.0.0git
|
#include "clang/Index/IndexingAction.h"
#include "IndexingContext.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Frontend/MultiplexConsumer.h"
#include "clang/Index/IndexDataConsumer.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Serialization/ASTReader.h"
#include "llvm/ADT/STLExtras.h"
#include <memory>
Go to the source code of this file.
Functions | |
static bool | topLevelDeclVisitor (void *context, const Decl *D) |
static void | indexTranslationUnit (ASTUnit &Unit, IndexingContext &IndexCtx) |
static void | indexPreprocessorMacro (const IdentifierInfo *II, const MacroInfo *MI, MacroDirective::Kind DirectiveKind, SourceLocation Loc, IndexDataConsumer &DataConsumer) |
static void | indexPreprocessorMacros (Preprocessor &PP, IndexDataConsumer &DataConsumer) |
static void | indexPreprocessorModuleMacros (Preprocessor &PP, serialization::ModuleFile &Mod, IndexDataConsumer &DataConsumer) |
|
static |
Definition at line 210 of file IndexingAction.cpp.
References clang::index::IndexDataConsumer::handleMacroOccurrence(), Loc, clang::MacroDirective::MD_Define, and clang::MacroDirective::MD_Visibility.
Referenced by indexPreprocessorMacros(), and indexPreprocessorModuleMacros().
|
static |
Definition at line 232 of file IndexingAction.cpp.
References clang::MacroDefinition::getMacroInfo(), indexPreprocessorMacro(), and clang::Preprocessor::macros().
Referenced by clang::index::indexASTUnit(), and clang::index::indexTopLevelDecls().
|
static |
Definition at line 242 of file IndexingAction.cpp.
References clang::serialization::ModuleFile::File, clang::Preprocessor::getLeafModuleMacros(), indexPreprocessorMacro(), clang::Preprocessor::macros(), and clang::MacroDirective::MD_Define.
Referenced by clang::index::indexModuleFile().
|
static |
Definition at line 206 of file IndexingAction.cpp.
References topLevelDeclVisitor(), and clang::ASTUnit::visitLocalTopLevelDecls().
Referenced by clang::index::indexASTUnit().
Definition at line 201 of file IndexingAction.cpp.
References D, and clang::index::IndexingContext::indexTopLevelDecl().
Referenced by indexTranslationUnit().