clang-tools
10.0.0svn
|
#include <SymbolCollector.h>
Public Attributes | |
std::string | FallbackDir |
When symbol paths cannot be resolved to absolute paths (e.g. More... | |
bool | CollectIncludePath = false |
const CanonicalIncludes * | Includes = nullptr |
If set, this is used to map symbol #include path to a potentially different #include path. More... | |
bool | CountReferences = false |
RefKind | RefFilter = RefKind::Unknown |
The symbol ref kinds that will be collected. More... | |
bool | RefsInHeaders = false |
If set to true, SymbolCollector will collect all refs (from main file and included headers); otherwise, only refs from main file will be collected. More... | |
SymbolOrigin | Origin = SymbolOrigin::Unknown |
bool | CollectMacro = false |
Collect macros. More... | |
bool | CollectMainFileSymbols = true |
Collect symbols local to main-files, such as static functions and symbols inside an anonymous namespace. More... | |
bool | StoreAllDocumentation = false |
If set to true, SymbolCollector will collect doc for all symbols. More... | |
std::function< bool(const SourceManager &, FileID)> | FileFilter = nullptr |
If this is set, only collect symbols/references from a file if FileFilter(SM, FID) is true. More... | |
Definition at line 47 of file SymbolCollector.h.
bool clang::clangd::SymbolCollector::Options::CollectIncludePath = false |
Definition at line 53 of file SymbolCollector.h.
bool clang::clangd::SymbolCollector::Options::CollectMacro = false |
Collect macros.
Note that SymbolCollector must be run with preprocessor in order to collect macros. For example, indexTopLevelDecls
will not index any macro even if this is true.
Definition at line 76 of file SymbolCollector.h.
bool clang::clangd::SymbolCollector::Options::CollectMainFileSymbols = true |
Collect symbols local to main-files, such as static functions and symbols inside an anonymous namespace.
Definition at line 79 of file SymbolCollector.h.
Referenced by clang::clangd::SymbolCollector::shouldCollectSymbol().
bool clang::clangd::SymbolCollector::Options::CountReferences = false |
Definition at line 58 of file SymbolCollector.h.
std::string clang::clangd::SymbolCollector::Options::FallbackDir |
When symbol paths cannot be resolved to absolute paths (e.g.
files in VFS that does not have absolute path), combine the fallback directory with symbols' paths to get absolute paths. This must be an absolute path.
Definition at line 52 of file SymbolCollector.h.
std::function<bool(const SourceManager &, FileID)> clang::clangd::SymbolCollector::Options::FileFilter = nullptr |
If this is set, only collect symbols/references from a file if FileFilter(SM, FID)
is true.
If not set, all files are indexed.
Definition at line 86 of file SymbolCollector.h.
const CanonicalIncludes* clang::clangd::SymbolCollector::Options::Includes = nullptr |
If set, this is used to map symbol #include path to a potentially different #include path.
Definition at line 56 of file SymbolCollector.h.
SymbolOrigin clang::clangd::SymbolCollector::Options::Origin = SymbolOrigin::Unknown |
Definition at line 71 of file SymbolCollector.h.
RefKind clang::clangd::SymbolCollector::Options::RefFilter = RefKind::Unknown |
The symbol ref kinds that will be collected.
If not set, SymbolCollector will not collect refs. Note that references of namespace decls are not collected, as they contribute large part of the index, and they are less useful compared with other decls.
Definition at line 64 of file SymbolCollector.h.
bool clang::clangd::SymbolCollector::Options::RefsInHeaders = false |
If set to true, SymbolCollector will collect all refs (from main file and included headers); otherwise, only refs from main file will be collected.
This flag is only meaningful when RefFilter is set.
Definition at line 69 of file SymbolCollector.h.
bool clang::clangd::SymbolCollector::Options::StoreAllDocumentation = false |
If set to true, SymbolCollector will collect doc for all symbols.
Note that documents of symbols being indexed for completion will always be collected regardless of this option.
Definition at line 83 of file SymbolCollector.h.