[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


================
@@ -208,21 +266,103 @@ SymbolTags computeSymbolTags(const NamedDecl &ND) {
   return Result;
 }
 
+// Filter symbol tags based on the presence of other tags and the kind of
+// symbol. This is needed to avoid redundant tags.
+SymbolTags filterSymbolTags(const NamedDecl &ND, const SymbolTags ST) {
----------------
timon-ul wrote:

Just wondering, do we really need to filter this? I mean technically all set tags are valid and correct information and I think it is on the client to understand which information he wants to display.

Also move this to the anonymous namespace.

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


More information about the cfe-commits mailing list