clang-tools 20.0.0git
Namespaces | Macros | Functions
FindSymbols.cpp File Reference
#include "FindSymbols.h"
#include "AST.h"
#include "FuzzyMatch.h"
#include "ParsedAST.h"
#include "Quality.h"
#include "SourceCode.h"
#include "index/Index.h"
#include "support/Logger.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/Index/IndexSymbol.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include <limits>
#include <optional>
#include <tuple>

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.
 

Macros

#define DEBUG_TYPE   "FindSymbols"
 

Functions

llvm::Expected< Locationclang::clangd::indexToLSPLocation (const SymbolLocation &Loc, llvm::StringRef TUPath)
 Helper function for deriving an LSP Location from an index SymbolLocation.
 
llvm::Expected< Locationclang::clangd::symbolToLocation (const Symbol &Sym, llvm::StringRef TUPath)
 Helper function for deriving an LSP Location for a Symbol.
 
llvm::Expected< std::vector< SymbolInformation > > clang::clangd::getWorkspaceSymbols (llvm::StringRef Query, int Limit, const SymbolIndex *const Index, llvm::StringRef HintPath)
 Searches for the symbols matching Query.
 
llvm::Expected< std::vector< DocumentSymbol > > clang::clangd::getDocumentSymbols (ParsedAST &AST)
 Retrieves the symbols contained in the "main file" section of an AST in the same order that they appear.
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "FindSymbols"

Definition at line 27 of file FindSymbols.cpp.

Variable Documentation

◆ DocSym

DocumentSymbol DocSym

Definition at line 522 of file FindSymbols.cpp.

◆ IsGroup

bool IsGroup

Definition at line 523 of file FindSymbols.cpp.