================
@@ -208,21 +320,47 @@ SymbolTags computeSymbolTags(const NamedDecl &ND) {
return Result;
}
+std::vector<SymbolTag> expandTagBitmask(const SymbolTags STGS) {
+ std::vector<SymbolTag> Tags;
+
+ if (STGS == 0)
+ return Tags;
+
+ // No filtering required since this function is only used for Symbols from
the
+ // index, which have already been filtered in getSymbolTags(const NamedDecl
+ // &ND).
+
+ // Iterate through SymbolTag enum values and collect any that are present in
+ // the bitmask. SymbolTag values are in the numeric range
+ // [FirstTag .. LastTag].
+ constexpr unsigned MinTag = static_cast<unsigned>(SymbolTag::FirstTag);
----------------
ratzdi wrote:
refactored.
https://github.com/llvm/llvm-project/pull/170103
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits