clang-tools 20.0.0git
Namespaces | Functions
Hover.cpp File Reference
#include "Hover.h"
#include "AST.h"
#include "CodeCompletionStrings.h"
#include "Config.h"
#include "FindTarget.h"
#include "Headers.h"
#include "IncludeCleaner.h"
#include "ParsedAST.h"
#include "Selection.h"
#include "SourceCode.h"
#include "clang-include-cleaner/Analysis.h"
#include "clang-include-cleaner/IncludeSpeller.h"
#include "clang-include-cleaner/Types.h"
#include "index/SymbolCollector.h"
#include "support/Markup.h"
#include "support/Trace.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTDiagnostic.h"
#include "clang/AST/ASTTypeTraits.h"
#include "clang/AST/Attr.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/OperationKinds.h"
#include "clang/AST/PrettyPrinter.h"
#include "clang/AST/RecordLayout.h"
#include "clang/AST/Type.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Specifiers.h"
#include "clang/Basic/TokenKinds.h"
#include "clang/Index/IndexSymbol.h"
#include "clang/Tooling/Syntax/Tokens.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <optional>
#include <string>
#include <vector>

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< HoverInfo > clang::clangd::getHover (ParsedAST &AST, Position Pos, const format::FormatStyle &Style, const SymbolIndex *Index)
 Get the hover information when hovering at Pos.
 
static std::string clang::clangd::formatSize (uint64_t SizeInBits)
 
static std::string clang::clangd::formatOffset (uint64_t OffsetInBits)
 
std::optional< llvm::StringRef > clang::clangd::getBacktickQuoteRange (llvm::StringRef Line, unsigned Offset)
 
void clang::clangd::parseDocumentationLine (llvm::StringRef Line, markup::Paragraph &Out)
 
void clang::clangd::parseDocumentation (llvm::StringRef Input, markup::Document &Output)
 
llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, const HoverInfo::PrintedType &T)
 
llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, const HoverInfo::Param &P)
 

Variable Documentation

◆ PrintedValue

std::optional<std::string> PrintedValue

The evaluation result on expression Expr.

Definition at line 475 of file Hover.cpp.

◆ TheExpr

const clang::Expr* TheExpr

The Expr object that represents the closest evaluable expression.

Definition at line 478 of file Hover.cpp.

◆ TheNode

const SelectionTree::Node* TheNode

The node of selection tree where the traversal stops.

Definition at line 480 of file Hover.cpp.