[clang] [clang-tools-extra] [clangd] Collect comments from function definitions into the index (PR #67802)
Christian Kandeler via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 01:19:23 PDT 2024
================
@@ -1477,6 +1477,26 @@ TEST_F(SymbolCollectorTest, Documentation) {
forCodeCompletion(false))));
}
+TEST_F(SymbolCollectorTest, DocumentationInMain) {
----------------
ckandeler wrote:
Hm, do we really want to specify a behavior there? My thinking was that the comment should be at either the declaration or the definition and otherwise one of them gets chosen at random, depending on the parse order. I suppose one could also cook up some elaborated merging scheme, but that seems like overkill.
https://github.com/llvm/llvm-project/pull/67802
More information about the cfe-commits
mailing list