clang-tools
8.0.0
|
#include "XRefs.h"
#include "AST.h"
#include "Logger.h"
#include "SourceCode.h"
#include "URI.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Index/IndexDataConsumer.h"
#include "clang/Index/IndexingAction.h"
#include "clang/Index/USRGeneration.h"
#include "llvm/Support/Path.h"
Go to the source code of this file.
Namespaces | |
clang | |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
clang::clangd | |
Functions | |
std::vector< Location > | clang::clangd::findDefinitions (ParsedAST &AST, Position Pos, const SymbolIndex *Index=nullptr) |
Get definition of symbol at a specified Pos . More... | |
std::vector< DocumentHighlight > | clang::clangd::findDocumentHighlights (ParsedAST &AST, Position Pos) |
Returns highlights for all usages of a symbol at Pos . More... | |
static PrintingPolicy | clang::clangd::printingPolicyForDecls (PrintingPolicy Base) |
static std::string | clang::clangd::typeDeclToString (const TypeDecl *TD) |
Return a string representation (e.g. More... | |
static std::string | clang::clangd::namedDeclQualifiedName (const NamedDecl *ND, llvm::StringRef Prefix) |
Return a string representation (e.g. More... | |
static llvm::Optional< std::string > | clang::clangd::getScopeName (const Decl *D) |
Given a declaration D , return a human-readable string representing the scope in which it is declared. More... | |
static Hover | clang::clangd::getHoverContents (const Decl *D) |
Generate a Hover object given the declaration D . More... | |
static Hover | clang::clangd::getHoverContents (QualType T, ASTContext &ASTCtx) |
Generate a Hover object given the type T . More... | |
static Hover | clang::clangd::getHoverContents (llvm::StringRef MacroName) |
Generate a Hover object given the macro MacroInf . More... | |
llvm::Optional< QualType > | clang::clangd::getDeducedType (ParsedAST &AST, SourceLocation SourceLocationBeg) |
Retrieves the deduced type at a given location (auto, decltype). More... | |
llvm::Optional< Hover > | clang::clangd::getHover (ParsedAST &AST, Position Pos) |
Get the hover information when hovering at Pos . More... | |
std::vector< Location > | clang::clangd::findReferences (ParsedAST &AST, Position Pos, uint32_t Limit, const SymbolIndex *Index=nullptr) |
Returns reference locations of the symbol at a specified Pos . More... | |
std::vector< SymbolDetails > | clang::clangd::getSymbolInfo (ParsedAST &AST, Position Pos) |
Get info about symbols at Pos . More... | |
const Decl* D |
Definition at line 79 of file XRefs.cpp.
Referenced by clang::clangd::asCommand(), clang::tidy::misc::NonCopyableObjectsCheck::check(), clang::tidy::readability::RedundantDeclarationCheck::check(), clang::tidy::readability::NonConstParameterCheck::check(), clang::tidy::bugprone::SuspiciousMemsetUsageCheck::check(), clang::tidy::fuchsia::OverloadedOperatorCheck::check(), clang::tidy::bugprone::UnusedRaiiCheck::check(), clang::tidy::fuchsia::VirtualInheritanceCheck::check(), clang::tidy::fuchsia::StaticallyConstructedObjectsCheck::check(), clang::tidy::fuchsia::TrailingReturnCheck::check(), clang::tidy::modernize::UseUncaughtExceptionsCheck::check(), clang::tidy::zircon::TemporaryObjectsCheck::check(), clang::tidy::bugprone::BoolPointerImplicitConversionCheck::check(), clang::tidy::google::readability::GlobalNamesInHeadersCheck::check(), clang::tidy::fuchsia::RestrictedIncludesPPCallbacks::EndOfMainFile(), clang::tidy::bugprone::findMockedMethod(), clang::move::HelperDeclRGBuilder::getGraph(), clang::move::HelperDeclRGBuilder::getOutmostClassOrFunDecl(), clang::clangd::SymbolCollector::handleDeclOccurence(), clang::clangd::StoreDiags::HandleDiagnostic(), clang::tidy::readability::NonConstParameterCheck::onEndOfTranslationUnit(), clang::clangd::operator<<(), clang::clangd::Deadline::operator==(), clang::tidy::modernize::paramReferredExactlyOnce(), clang::doc::serialize::populateParentNamespaces(), clang::move::ClangMoveTool::run(), clang::clangd::scopeBoost(), and clang::clangd::SymbolCollector::setPreprocessor().
llvm::StringRef Name |
Definition at line 74 of file XRefs.cpp.
Referenced by clang::clangd::namedDeclQualifiedName(), and clang::clangd::typeDeclToString().