clang-tools  14.0.0git
Classes | Namespaces | Macros | Typedefs | Functions | Variables
Headers.cpp File Reference
#include "Headers.h"
#include "Compiler.h"
#include "Preamble.h"
#include "SourceCode.h"
#include "support/Logger.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Path.h"
#include "CSymbolMap.inc"
#include "StdSymbolMap.inc"
Include dependency graph for Headers.cpp:

Go to the source code of this file.

Classes

class  clang::clangd::IncludeStructure::RecordHeaders
 

Namespaces

 clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
 clang::clangd
 
 clang::clangd::stdlib
 

Macros

#define SYMBOL(Name, NS, Header)   ++SymCount;
 
#define SYMBOL(Name, NS, Header)   Add(#Name, #NS, #Header);
 

Typedefs

using clang::clangd::stdlib::NSSymbolMap = llvm::DenseMap< llvm::StringRef, unsigned >
 

Functions

bool clang::clangd::isLiteralInclude (llvm::StringRef Include)
 Returns true if Include is literal include like "path" or <path>. More...
 
llvm::Expected< HeaderFile > clang::clangd::toHeaderFile (llvm::StringRef Header, llvm::StringRef HintPath)
 Creates a HeaderFile from Header which can be either a URI or a literal include. More...
 
llvm::SmallVector< llvm::StringRef, 1 > clang::clangd::getRankedIncludes (const Symbol &Sym)
 
llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, const Inclusion &Inc)
 
bool clang::clangd::operator== (const Inclusion &LHS, const Inclusion &RHS)
 
static int clang::clangd::stdlib::initialize ()
 
static void clang::clangd::stdlib::ensureInitialized ()
 

Variables

const char clang::clangd::IWYUPragmaKeep [] = "// IWYU pragma: keep"
 
static llvm::StringRef * clang::clangd::stdlib::HeaderNames
 
static std::pair< llvm::StringRef, llvm::StringRef > * clang::clangd::stdlib::SymbolNames
 
static unsigned * clang::clangd::stdlib::SymbolHeaderIDs
 
static llvm::DenseMap< llvm::StringRef, unsigned > * clang::clangd::stdlib::HeaderIDs
 
static llvm::DenseMap< llvm::StringRef, NSSymbolMap * > * clang::clangd::stdlib::NamespaceSymbols
 

Macro Definition Documentation

◆ SYMBOL [1/2]

#define SYMBOL (   Name,
  NS,
  Header 
)    ++SymCount;

◆ SYMBOL [2/2]

#define SYMBOL (   Name,
  NS,
  Header 
)    Add(#Name, #NS, #Header);