clang-tools  12.0.0git
Namespaces | Functions
HeaderSourceSwitch.cpp File Reference
#include "HeaderSourceSwitch.h"
#include "AST.h"
#include "SourceCode.h"
#include "index/SymbolCollector.h"
#include "support/Logger.h"
#include "clang/AST/Decl.h"
Include dependency graph for HeaderSourceSwitch.cpp:

Go to the source code of this file.

Namespaces

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

Functions

llvm::Optional< Pathclang::clangd::getCorrespondingHeaderOrSource (const Path &OriginalFile, llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > VFS)
 Given a header file, returns the best matching source file, and vice visa. More...
 
llvm::Optional< Pathclang::clangd::getCorrespondingHeaderOrSource (const Path &OriginalFile, ParsedAST &AST, const SymbolIndex *Index)
 Given a header file, returns the best matching source file, and vice visa. More...
 
std::vector< const Decl * > clang::clangd::getIndexableLocalDecls (ParsedAST &AST)
 Returns all indexable decls that are present in the main file of the AST. More...