clang-tools 19.0.0git
Public Member Functions | Public Attributes | List of all members
clang::clangd::PreambleData Struct Reference

The parsed preamble and associated data. More...

#include <Preamble.h>

Public Member Functions

 PreambleData (PrecompiledPreamble Preamble)
 

Public Attributes

std::string Version
 
tooling::CompileCommand CompileCommand
 
std::shared_ptr< TargetOptions > TargetOpts = nullptr
 
PrecompiledPreamble Preamble
 
std::vector< DiagDiags
 
IncludeStructure Includes
 
std::shared_ptr< const include_cleaner::PragmaIncludes > Pragmas
 
MainFileMacros Macros
 
std::vector< PragmaMarkMarks
 
std::shared_ptr< PreambleFileStatusCacheStatCache
 
bool MainIsIncludeGuarded = false
 

Detailed Description

The parsed preamble and associated data.

As we must avoid re-parsing the preamble, any information that can only be obtained during parsing must be eagerly captured and stored here.

Definition at line 95 of file Preamble.h.

Constructor & Destructor Documentation

◆ PreambleData()

clang::clangd::PreambleData::PreambleData ( PrecompiledPreamble  Preamble)
inline

Definition at line 96 of file Preamble.h.

Member Data Documentation

◆ CompileCommand

tooling::CompileCommand clang::clangd::PreambleData::CompileCommand

Definition at line 100 of file Preamble.h.

◆ Diags

std::vector<Diag> clang::clangd::PreambleData::Diags

Definition at line 106 of file Preamble.h.

◆ Includes

IncludeStructure clang::clangd::PreambleData::Includes

Definition at line 109 of file Preamble.h.

◆ Macros

MainFileMacros clang::clangd::PreambleData::Macros

Definition at line 115 of file Preamble.h.

◆ MainIsIncludeGuarded

bool clang::clangd::PreambleData::MainIsIncludeGuarded = false

Definition at line 123 of file Preamble.h.

◆ Marks

std::vector<PragmaMark> clang::clangd::PreambleData::Marks

Definition at line 117 of file Preamble.h.

◆ Pragmas

std::shared_ptr<const include_cleaner::PragmaIncludes> clang::clangd::PreambleData::Pragmas

Definition at line 111 of file Preamble.h.

◆ Preamble

PrecompiledPreamble clang::clangd::PreambleData::Preamble

Definition at line 105 of file Preamble.h.

Referenced by clang::clangd::ClangdServer::signatureHelp().

◆ StatCache

std::shared_ptr<PreambleFileStatusCache> clang::clangd::PreambleData::StatCache

Definition at line 120 of file Preamble.h.

◆ TargetOpts

std::shared_ptr<TargetOptions> clang::clangd::PreambleData::TargetOpts = nullptr

Definition at line 104 of file Preamble.h.

◆ Version

std::string clang::clangd::PreambleData::Version

Definition at line 99 of file Preamble.h.


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