Skip to content

Commit 9b2386e

Browse files
authored
[clangd] Fix JSON conversion for symbol tags (#84747)
The wrong constructor of json::Value got called, making every tag an array instead of a number.
1 parent 5ff6720 commit 9b2386e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/Protocol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ bool fromJSON(const llvm::json::Value &Params, ReferenceParams &R,
14121412
}
14131413

14141414
llvm::json::Value toJSON(SymbolTag Tag) {
1415-
return llvm::json::Value{static_cast<int>(Tag)};
1415+
return llvm::json::Value(static_cast<int>(Tag));
14161416
}
14171417

14181418
llvm::json::Value toJSON(const CallHierarchyItem &I) {

0 commit comments

Comments
 (0)