[clang-tools-extra] LSP 3.18 - Symbol Tags (PR #167536)
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 13 23:12:09 PST 2026
================
@@ -30,6 +30,52 @@
namespace clang {
namespace clangd {
+namespace {
+SymbolTags toSymbolTagBitmask(const SymbolTag ST) {
+ return (1 << static_cast<unsigned>(ST));
+}
+}
+
+std::vector<SymbolTag> getSymbolTags(const NamedDecl &ND) {
+ const auto SymbolTags = computeSymbolTags(ND);
+ std::vector<SymbolTag> Tags;
+
+ if (SymbolTags & toSymbolTagBitmask(SymbolTag::Deprecated))
----------------
HighCommander4 wrote:
We should be able to do this with a loop.
https://github.com/llvm/llvm-project/pull/167536
More information about the cfe-commits
mailing list