clang-tools 20.0.0git
|
#include <Headers.h>
Classes | |
class | RecordHeaders |
Public Types | |
enum class | HeaderID : unsigned |
Public Member Functions | |
IncludeStructure () | |
void | collect (const CompilerInstance &CI) |
std::optional< HeaderID > | getID (const FileEntry *Entry) const |
HeaderID | getOrCreateID (FileEntryRef Entry) |
StringRef | getRealPath (HeaderID ID) const |
llvm::ArrayRef< std::string > | allHeaders () const |
llvm::SmallVector< const Inclusion * > | mainFileIncludesWithSpelling (llvm::StringRef Spelling) const |
llvm::DenseMap< HeaderID, unsigned > | includeDepth (HeaderID Root=MainFileID) const |
Public Attributes | |
llvm::DenseMap< HeaderID, SmallVector< HeaderID > > | IncludeChildren |
llvm::DenseMap< tooling::stdlib::Header, llvm::SmallVector< HeaderID > > | StdlibHeaders |
std::vector< Inclusion > | MainFileIncludes |
std::vector< std::string > | SearchPathsCanonical |
Static Public Attributes | |
static const HeaderID | MainFileID = HeaderID(0u) |
|
strong |
|
inline |
|
inline |
void clang::clangd::IncludeStructure::collect | ( | const CompilerInstance & | CI | ) |
Definition at line 178 of file Headers.cpp.
References CI, Dir, and SearchPathsCanonical.
std::optional< IncludeStructure::HeaderID > clang::clangd::IncludeStructure::getID | ( | const FileEntry * | Entry | ) | const |
Definition at line 197 of file Headers.cpp.
IncludeStructure::HeaderID clang::clangd::IncludeStructure::getOrCreateID | ( | FileEntryRef | Entry | ) |
Definition at line 208 of file Headers.cpp.
References MainFileID.
Referenced by clang::clangd::IncludeStructure::RecordHeaders::InclusionDirective().
|
inline |
llvm::DenseMap< IncludeStructure::HeaderID, unsigned > clang::clangd::IncludeStructure::includeDepth | ( | HeaderID | Root = MainFileID | ) | const |
Definition at line 228 of file Headers.cpp.
References IncludeChildren, Parent, and Root.
llvm::SmallVector< const Inclusion * > clang::clangd::IncludeStructure::mainFileIncludesWithSpelling | ( | llvm::StringRef | Spelling | ) | const |
Definition at line 256 of file Headers.cpp.
References MainFileIncludes.
Definition at line 169 of file Headers.h.
Referenced by includeDepth(), and clang::clangd::IncludeStructure::RecordHeaders::InclusionDirective().
Definition at line 184 of file Headers.h.
Referenced by getOrCreateID().
std::vector<Inclusion> clang::clangd::IncludeStructure::MainFileIncludes |
Definition at line 174 of file Headers.h.
Referenced by clang::clangd::IncludeStructure::RecordHeaders::InclusionDirective(), and mainFileIncludesWithSpelling().
std::vector<std::string> clang::clangd::IncludeStructure::SearchPathsCanonical |
llvm::DenseMap<tooling::stdlib::Header, llvm::SmallVector<HeaderID> > clang::clangd::IncludeStructure::StdlibHeaders |
Definition at line 172 of file Headers.h.
Referenced by clang::clangd::IncludeStructure::RecordHeaders::InclusionDirective().