clang-tools  14.0.0git
Public Attributes | List of all members
clang::clangd::config::Fragment::SourceInfo Struct Reference

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>

Collaboration diagram for clang::clangd::config::Fragment::SourceInfo:
Collaboration graph
[legend]

Public Attributes

std::shared_ptr< llvm::SourceMgrManager
 Retains a buffer of the original source this fragment was parsed from. More...
 
llvm::SMLoc Location
 The start of the original source for this fragment. More...
 
std::string Directory
 Absolute path to directory the fragment is associated with. More...
 
bool Trusted = false
 Whether this fragment is allowed to make critical security/privacy decisions. More...
 

Detailed Description

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 85 of file ConfigFragment.h.

Member Data Documentation

◆ Directory

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 96 of file ConfigFragment.h.

◆ Location

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 93 of file ConfigFragment.h.

◆ Manager

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 90 of file ConfigFragment.h.

◆ Trusted

bool clang::clangd::config::Fragment::SourceInfo::Trusted = false

Whether this fragment is allowed to make critical security/privacy decisions.

Definition at line 99 of file ConfigFragment.h.


The documentation for this struct was generated from the following file: