clang-tools  12.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>

Collaboration diagram for clang::clangd::PreambleData:
Collaboration graph
[legend]

Public Member Functions

 PreambleData (const ParseInputs &Inputs, PrecompiledPreamble Preamble, std::vector< Diag > Diags, IncludeStructure Includes, MainFileMacros Macros, std::unique_ptr< PreambleFileStatusCache > StatCache, CanonicalIncludes CanonIncludes)
 

Public Attributes

std::string Version
 
tooling::CompileCommand CompileCommand
 
PrecompiledPreamble Preamble
 
std::vector< DiagDiags
 
IncludeStructure Includes
 
MainFileMacros Macros
 
std::unique_ptr< PreambleFileStatusCacheStatCache
 
CanonicalIncludes CanonIncludes
 

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 49 of file Preamble.h.

Constructor & Destructor Documentation

◆ PreambleData()

clang::clangd::PreambleData::PreambleData ( const ParseInputs Inputs,
PrecompiledPreamble  Preamble,
std::vector< Diag Diags,
IncludeStructure  Includes,
MainFileMacros  Macros,
std::unique_ptr< PreambleFileStatusCache StatCache,
CanonicalIncludes  CanonIncludes 
)

Definition at line 308 of file Preamble.cpp.

Member Data Documentation

◆ CanonIncludes

CanonicalIncludes clang::clangd::PreambleData::CanonIncludes

Definition at line 71 of file Preamble.h.

◆ CompileCommand

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

Definition at line 58 of file Preamble.h.

Referenced by clang::clangd::isPreambleCompatible().

◆ Diags

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

Definition at line 60 of file Preamble.h.

◆ Includes

IncludeStructure clang::clangd::PreambleData::Includes

◆ Macros

MainFileMacros clang::clangd::PreambleData::Macros

Definition at line 67 of file Preamble.h.

◆ Preamble

PrecompiledPreamble clang::clangd::PreambleData::Preamble

◆ StatCache

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

Definition at line 70 of file Preamble.h.

◆ Version

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

Definition at line 57 of file Preamble.h.


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