[PATCH] D107365: clangd: Make documentation property of completion items more similar
Christian Kandeler via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 5 04:24:37 PDT 2021
ckandeler updated this revision to Diff 364412.
ckandeler added a comment.
Addressed lint complaints.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107365/new/
https://reviews.llvm.org/D107365
Files:
clang-tools-extra/clangd/CodeComplete.cpp
Index: clang-tools-extra/clangd/CodeComplete.cpp
===================================================================
--- clang-tools-extra/clangd/CodeComplete.cpp
+++ clang-tools-extra/clangd/CodeComplete.cpp
@@ -405,8 +405,9 @@
if (C.IndexResult) {
SetDoc(C.IndexResult->Documentation);
} else if (C.SemaResult) {
- SetDoc(getDocComment(*ASTCtx, *C.SemaResult,
- /*CommentsFromHeader=*/false));
+ const auto DocComment = getDocComment(*ASTCtx, *C.SemaResult,
+ /*CommentsFromHeader=*/false);
+ SetDoc(formatDocumentation(*SemaCCS, DocComment));
}
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107365.364412.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210805/c149ee34/attachment.bin>
More information about the cfe-commits
mailing list