mirror of https://github.com/microsoft/clang.git
Fix warning text: lower -> higher
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
089d680acf
commit
65968c19ce
|
@ -4647,7 +4647,7 @@ def warn_logical_and_in_logical_or : Warning<
|
|||
"'&&' within '||'">, InGroup<LogicalOpParentheses>;
|
||||
|
||||
def warn_overloaded_shift_in_comparison :Warning<
|
||||
"overloaded operator %select{>>|<<}0 has lower precedence than "
|
||||
"overloaded operator %select{>>|<<}0 has higher precedence than "
|
||||
"comparison operator">,
|
||||
InGroup<OverloadedShiftOpParentheses>;
|
||||
def note_evaluate_comparison_first :Note<
|
||||
|
|
|
@ -47,7 +47,7 @@ void f(Stream& s, bool b) {
|
|||
// CHECK: fix-it:"{{.*}}":{[[@LINE-5]]:15-[[@LINE-5]]:15}:"("
|
||||
// CHECK: fix-it:"{{.*}}":{[[@LINE-6]]:32-[[@LINE-6]]:32}:")"
|
||||
|
||||
(void)(s << 5 == 1); // expected-warning {{overloaded operator << has lower precedence than comparison operator}} \
|
||||
(void)(s << 5 == 1); // expected-warning {{overloaded operator << has higher precedence than comparison operator}} \
|
||||
// expected-note {{place parentheses around the '<<' expression to silence this warning}} \
|
||||
// expected-note {{place parentheses around comparison expression to evaluate it first}}
|
||||
// CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:10}:"("
|
||||
|
@ -55,7 +55,7 @@ void f(Stream& s, bool b) {
|
|||
// CHECK: fix-it:"{{.*}}":{[[@LINE-5]]:15-[[@LINE-5]]:15}:"("
|
||||
// CHECK: fix-it:"{{.*}}":{[[@LINE-6]]:21-[[@LINE-6]]:21}:")"
|
||||
|
||||
(void)(s >> 5 == 1); // expected-warning {{overloaded operator >> has lower precedence than comparison operator}} \
|
||||
(void)(s >> 5 == 1); // expected-warning {{overloaded operator >> has higher precedence than comparison operator}} \
|
||||
// expected-note {{place parentheses around the '>>' expression to silence this warning}} \
|
||||
// expected-note {{place parentheses around comparison expression to evaluate it first}}
|
||||
// CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:10}:"("
|
||||
|
|
Loading…
Reference in New Issue