From 9ad40ac76d1dc2d2f813ee03757506957c622cbd Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Tue, 28 Oct 2014 04:37:34 +0000 Subject: [PATCH] Fix warning text: lower -> higher llvm-svn: 220763 --- clang/include/clang/Basic/DiagnosticSemaKinds.td | 2 +- clang/test/Sema/parentheses.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index a2e7b59..292c104 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -4647,7 +4647,7 @@ def warn_logical_and_in_logical_or : Warning< "'&&' within '||'">, InGroup; 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; def note_evaluate_comparison_first :Note< diff --git a/clang/test/Sema/parentheses.cpp b/clang/test/Sema/parentheses.cpp index d9fedb5..324d9b5f 100644 --- a/clang/test/Sema/parentheses.cpp +++ b/clang/test/Sema/parentheses.cpp @@ -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}:"(" -- 2.7.4