clang-tools 19.0.0git
Namespaces | Functions
HeaderSourceSwitch.h File Reference
#include "ParsedAST.h"
#include <optional>

Go to the source code of this file.

Namespaces

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

Functions

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