projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
580c6d3
)
Fix -Wparentheses warning. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Tue, 4 Jun 2019 11:31:45 +0000
(11:31 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Tue, 4 Jun 2019 11:31:45 +0000
(11:31 +0000)
llvm-svn: 362491
clang-tools-extra/clangd/Protocol.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/Protocol.cpp
b/clang-tools-extra/clangd/Protocol.cpp
index
5c5912e
..
4714c6c
100644
(file)
--- a/
clang-tools-extra/clangd/Protocol.cpp
+++ b/
clang-tools-extra/clangd/Protocol.cpp
@@
-832,8
+832,8
@@
llvm::json::Value toJSON(const CompletionList &L) {
}
llvm::json::Value toJSON(const ParameterInformation &PI) {
- assert(
PI.labelOffsets.hasValue() ||
-
!PI.labelString.empty() &&
"parameter information label is required");
+ assert(
(PI.labelOffsets.hasValue() || !PI.labelString.empty()) &&
+ "parameter information label is required");
llvm::json::Object Result;
if (PI.labelOffsets)
Result["label"] =