clang-tools 20.0.0git
|
These fields are not part of the user-specified configuration, but instead are populated by the parser to describe the configuration source. More...
#include <ConfigFragment.h>
Public Attributes | |
std::shared_ptr< llvm::SourceMgr > | Manager |
Retains a buffer of the original source this fragment was parsed from. | |
llvm::SMLoc | Location |
The start of the original source for this fragment. | |
std::string | Directory |
Absolute path to directory the fragment is associated with. | |
bool | Trusted = false |
Whether this fragment is allowed to make critical security/privacy decisions. | |
These fields are not part of the user-specified configuration, but instead are populated by the parser to describe the configuration source.
Definition at line 83 of file ConfigFragment.h.
std::string clang::clangd::config::Fragment::SourceInfo::Directory |
Absolute path to directory the fragment is associated with.
Relative paths mentioned in the fragment are resolved against this.
Definition at line 94 of file ConfigFragment.h.
Referenced by clang::clangd::config::FileConfigCache::get().
llvm::SMLoc clang::clangd::config::Fragment::SourceInfo::Location |
The start of the original source for this fragment.
Only valid if SourceManager is set.
Definition at line 91 of file ConfigFragment.h.
Referenced by clang::clangd::config::Fragment::parseYAML().
std::shared_ptr<llvm::SourceMgr> clang::clangd::config::Fragment::SourceInfo::Manager |
Retains a buffer of the original source this fragment was parsed from.
Locations within Located<T> objects point into this SourceMgr. Shared because multiple fragments are often parsed from one (YAML) file. May be null, then all locations should be ignored.
Definition at line 88 of file ConfigFragment.h.
Referenced by clang::clangd::config::Fragment::parseYAML().
bool clang::clangd::config::Fragment::SourceInfo::Trusted = false |
Whether this fragment is allowed to make critical security/privacy decisions.
Definition at line 97 of file ConfigFragment.h.
Referenced by clang::clangd::config::FileConfigCache::get().