clang-tools 19.0.0git
Namespaces | Functions
CodeCompletionStrings.h File Reference
#include "clang/Sema/CodeCompleteConsumer.h"

Go to the source code of this file.

Namespaces

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

Functions

std::string clang::clangd::getDocComment (const ASTContext &Ctx, const CodeCompletionResult &Result, bool CommentsFromHeaders)
 Gets a minimally formatted documentation comment of Result, with comment markers stripped.
 
std::string clang::clangd::getDeclComment (const ASTContext &Ctx, const NamedDecl &D)
 Similar to getDocComment, but returns the comment for a NamedDecl.
 
void clang::clangd::getSignature (const CodeCompletionString &CCS, std::string *Signature, std::string *Snippet, CodeCompletionResult::ResultKind ResultKind, CXCursorKind CursorKind, bool IncludeFunctionArguments=true, std::string *RequiredQualifiers=nullptr)
 Formats the signature for an item, as a display string and snippet.
 
std::string clang::clangd::formatDocumentation (const CodeCompletionString &CCS, llvm::StringRef DocComment)
 Assembles formatted documentation for a completion result.
 
std::string clang::clangd::getReturnType (const CodeCompletionString &CCS)
 Gets detail to be used as the detail field in an LSP completion item.