clang-tools  11.0.0
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:
[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...
 

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

◆ 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.


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