Skip to content
Snippets Groups Projects
Commit 0a241a17 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Change -Wparentheses to not imply -Widiomatic-parentheses. Users rarely want...

Change -Wparentheses to not imply -Widiomatic-parentheses.  Users rarely want to see these warnings, and often explicitly pass -Wparentheses.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130535 91177308-0d34-0410-b5e6-96231b3b80d8
parent ab9c0386
No related branches found
No related tags found
No related merge requests found
...@@ -185,10 +185,11 @@ def DuplicateArgDecl : DiagGroup<"duplicate-method-arg">; ...@@ -185,10 +185,11 @@ def DuplicateArgDecl : DiagGroup<"duplicate-method-arg">;
// Aggregation warning settings. // Aggregation warning settings.
// -Widiomatic-parentheses contains warnings about 'idiomatic' // -Widiomatic-parentheses contains warnings about 'idiomatic'
// missing parentheses; it is off by default. // missing parentheses; it is off by default. We do not include it
// in -Wparentheses because most users who use -Wparentheses explicitly
// do not want these warnings.
def Parentheses : DiagGroup<"parentheses", def Parentheses : DiagGroup<"parentheses",
[LogicalOpParentheses, [LogicalOpParentheses]>;
DiagGroup<"idiomatic-parentheses">]>;
// -Wconversion has its own warnings, but we split a few out for // -Wconversion has its own warnings, but we split a few out for
// legacy reasons: // legacy reasons:
......
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -fsyntax-only -verify -Wparentheses %s
// Don't warn about some common ObjC idioms unless we have -Wparentheses on. // Don't warn about some common ObjC idioms unless we have -Widiomatic-parentheses on.
// <rdar://problem/7382435> // <rdar://problem/7382435>
@interface Object @interface Object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment