[clang-tools-extra] Symbol tags in SymbolInformation, WorkspaceSymbol, CallHierarchyItem and TypeHierarchyItem (PR #170103)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 05:33:14 PDT 2026
================
@@ -1897,11 +1899,39 @@ symbolToCallHierarchyItem(const Symbol &S, PathRef TUPath) {
if (!Result)
return Result;
Result->data = S.ID.str();
- if (S.Flags & Symbol::Deprecated)
- Result->tags.push_back(SymbolTag::Deprecated);
return Result;
}
+// Tries to find a NamedDecl in the AST that matches the given Symbol.
+// Returns nullptr if the symbol is not found in the current AST.
+const NamedDecl *getNamedDeclFromSymbol(const Symbol &Sym,
----------------
timon-ul wrote:
Should be removed I assume?
https://github.com/llvm/llvm-project/pull/170103
More information about the cfe-commits
mailing list