clang-tools 20.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 "support/Path.h"
#include "clang/AST/Decl.h"
#include <optional>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

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.