diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2021-12-09 09:36:04 +0100 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2021-12-10 12:58:08 +0100 |
commit | d3606a3375d258c67c061a97901faca53c4032da (patch) | |
tree | cb7384e0875b78f492505903111aaceb6f2dfc4c /clang-tools-extra/clangd/CodeComplete.h | |
parent | fbf489cd1b4b55747edbe12a317b79b2c477418c (diff) | |
download | llvm-d3606a3375d258c67c061a97901faca53c4032da.tar.gz |
[clangd] Provide documentation as MarkupContent in signaturehelp
This unifies the behaviour we have in code completion item
documentations and signaturehelp. Providing better line wrapping and detection
of inline code blocks in comments to be renedered appropriately in markdown.
Differential Revision: https://reviews.llvm.org/D115442
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.h')
-rw-r--r-- | clang-tools-extra/clangd/CodeComplete.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.h b/clang-tools-extra/clangd/CodeComplete.h index 40a528caa939..a6117d6d314f 100644 --- a/clang-tools-extra/clangd/CodeComplete.h +++ b/clang-tools-extra/clangd/CodeComplete.h @@ -284,7 +284,8 @@ CodeCompleteResult codeComplete(PathRef FileName, Position Pos, /// Get signature help at a specified \p Pos in \p FileName. SignatureHelp signatureHelp(PathRef FileName, Position Pos, const PreambleData &Preamble, - const ParseInputs &ParseInput); + const ParseInputs &ParseInput, + MarkupKind DocumentationFormat); // For index-based completion, we only consider: // * symbols in namespaces or translation unit scopes (e.g. no class |