[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
Mon Sep 9 04:36:37 PDT 2024


================
@@ -1069,6 +1071,27 @@ void SymbolCollector::addDefinition(const NamedDecl &ND,
   Symbol S = DeclSym;
   // FIXME: use the result to filter out symbols.
   S.Definition = *DefLoc;
+
+  std::string DocComment;
+  std::string Documentation;
+  if (!(S.Flags & Symbol::HasDocComment) &&
----------------
ckandeler wrote:

Done.

https://github.com/llvm/llvm-project/pull/67802


More information about the cfe-commits mailing list