[clang-tools-extra] Symbol tags in SymbolInformation, WorkspaceSymbol, CallHierarchyItem and TypeHierarchyItem (PR #170103)
Dimitri Ratz via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 07:10:35 PDT 2026
================
@@ -86,11 +86,28 @@ using clang::clangd::RelationKind;
using clang::clangd::Symbol;
using clang::clangd::SymbolID;
using clang::clangd::SymbolLocation;
+using clang::clangd::SymbolTags;
using clang::index::SymbolInfo;
using clang::index::SymbolKind;
using clang::index::SymbolLanguage;
using clang::tooling::CompileCommand;
+template <> struct ScalarTraits<SymbolTags> {
+ static void output(const SymbolTags &Value, void *, raw_ostream &Out) {
+ Out << Value.raw();
+ }
+
+ static StringRef input(StringRef Scalar, void *, SymbolTags &Value) {
+ SymbolTags::Storage Raw;
+ if (Scalar.getAsInteger(/*Radix=*/10, Raw))
----------------
ratzdi wrote:
change is obsolete, due to revert.
https://github.com/llvm/llvm-project/pull/170103
More information about the cfe-commits
mailing list