Index: include/clang/Basic/DiagnosticSemaKinds.td =================================================================== --- include/clang/Basic/DiagnosticSemaKinds.td +++ include/clang/Basic/DiagnosticSemaKinds.td @@ -5639,21 +5639,21 @@ "remove constant to silence this warning">; def warn_bitwise_op_in_bitwise_op : Warning< - "'%0' within '%1'">, InGroup; + "'%0' within '%1'">, InGroup, DefaultIgnore; def warn_logical_and_in_logical_or : Warning< - "'&&' within '||'">, InGroup; + "'&&' within '||'">, InGroup, DefaultIgnore; def warn_overloaded_shift_in_comparison :Warning< "overloaded operator %select{>>|<<}0 has higher precedence than " "comparison operator">, - InGroup; + InGroup, DefaultIgnore; def note_evaluate_comparison_first :Note< "place parentheses around comparison expression to evaluate it first">; def warn_addition_in_bitshift : Warning< "operator '%0' has lower precedence than '%1'; " - "'%1' will be evaluated first">, InGroup; + "'%1' will be evaluated first">, InGroup, DefaultIgnore; def warn_self_assignment_builtin : Warning< "explicitly assigning value of variable of type %0 to itself">, Index: test/Misc/warning-flags-enabled.c =================================================================== --- test/Misc/warning-flags-enabled.c +++ test/Misc/warning-flags-enabled.c @@ -36,7 +36,7 @@ // Test if -Wshift-op-parentheses is a subgroup of -Wparentheses // RUN: diagtool show-enabled --no-levels -Wno-parentheses -Wshift-op-parentheses %s | FileCheck --check-prefix CHECK-SHIFT-OP-PARENTHESES %s -// RUN: diagtool show-enabled --no-levels %s | FileCheck --check-prefix CHECK-SHIFT-OP-PARENTHESES %s +// RUN: diagtool show-enabled --no-levels %s | FileCheck --check-prefix CHECK-NO-SHIFT-OP-PARENTHESES %s // RUN: diagtool show-enabled --no-levels -Wno-parentheses %s | FileCheck --check-prefix CHECK-NO-SHIFT-OP-PARENTHESES %s // // CHECK-SHIFT-OP-PARENTHESES: -Wshift-op-parentheses Index: test/Parser/cxx2a-spaceship.cpp =================================================================== --- test/Parser/cxx2a-spaceship.cpp +++ test/Parser/cxx2a-spaceship.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -std=c++2a -verify %s +// RUN: %clang_cc1 -std=c++2a -verify -Wparentheses %s template struct X {}; Index: test/SemaCXX/parentheses.cpp =================================================================== --- test/SemaCXX/parentheses.cpp +++ test/SemaCXX/parentheses.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -verify %s +// RUN: %clang_cc1 -verify -Wlogical-op-parentheses %s // PR16930, PR16727: template