Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 //==--- DiagnosticGroups.td - Diagnostic Group Definitions ----------------===// | 1 //==--- DiagnosticGroups.td - Diagnostic Group Definitions ----------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 | 9 |
10 def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">; | 10 def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">; |
11 def ImplicitInt : DiagGroup<"implicit-int">; | 11 def ImplicitInt : DiagGroup<"implicit-int">; |
12 | 12 |
13 // Aggregation warning settings. | 13 // Aggregation warning settings. |
14 def Implicit : DiagGroup<"implicit", [ | 14 def Implicit : DiagGroup<"implicit", [ |
15 ImplicitFunctionDeclare, | 15 ImplicitFunctionDeclare, |
16 ImplicitInt | 16 ImplicitInt |
17 ]>; | 17 ]>; |
18 | 18 |
19 // Empty DiagGroups are recognized by clang but ignored. | 19 // Empty DiagGroups are recognized by clang but ignored. |
20 def : DiagGroup<"address">; | 20 def : DiagGroup<"address">; |
21 def AddressOfTemporary : DiagGroup<"address-of-temporary">; | 21 def AddressOfTemporary : DiagGroup<"address-of-temporary">; |
22 def : DiagGroup<"aggregate-return">; | 22 def : DiagGroup<"aggregate-return">; |
23 def AmbigMemberTemplate : DiagGroup<"ambiguous-member-template">; | |
23 def : DiagGroup<"attributes">; | 24 def : DiagGroup<"attributes">; |
24 def : DiagGroup<"bad-function-cast">; | 25 def : DiagGroup<"bad-function-cast">; |
25 def : DiagGroup<"c++-compat">; | 26 def : DiagGroup<"c++-compat">; |
26 def : DiagGroup<"cast-align">; | 27 def : DiagGroup<"cast-align">; |
27 def : DiagGroup<"cast-qual">; | 28 def : DiagGroup<"cast-qual">; |
28 def : DiagGroup<"char-align">; | 29 def : DiagGroup<"char-align">; |
29 def Comment : DiagGroup<"comment">; | 30 def Comment : DiagGroup<"comment">; |
30 def : DiagGroup<"ctor-dtor-privacy">; | 31 def : DiagGroup<"ctor-dtor-privacy">; |
31 def : DiagGroup<"declaration-after-statement">; | 32 def : DiagGroup<"declaration-after-statement">; |
32 def GNUDesignator : DiagGroup<"gnu-designator">; | 33 def GNUDesignator : DiagGroup<"gnu-designator">; |
(...skipping 30 matching lines...) Expand all Loading... | |
63 def MismatchedTags : DiagGroup<"mismatched-tags">; | 64 def MismatchedTags : DiagGroup<"mismatched-tags">; |
64 def MissingFieldInitializers : DiagGroup<"missing-field-initializers">; | 65 def MissingFieldInitializers : DiagGroup<"missing-field-initializers">; |
65 def NonNull : DiagGroup<"nonnull">; | 66 def NonNull : DiagGroup<"nonnull">; |
66 def : DiagGroup<"nonportable-cfstrings">; | 67 def : DiagGroup<"nonportable-cfstrings">; |
67 def : DiagGroup<"non-virtual-dtor">; | 68 def : DiagGroup<"non-virtual-dtor">; |
68 def : DiagGroup<"old-style-definition">; | 69 def : DiagGroup<"old-style-definition">; |
69 def : DiagGroup<"overflow">; | 70 def : DiagGroup<"overflow">; |
70 def : DiagGroup<"overloaded-virtual">; | 71 def : DiagGroup<"overloaded-virtual">; |
71 def : DiagGroup<"packed">; | 72 def : DiagGroup<"packed">; |
72 def PointerArith : DiagGroup<"pointer-arith">; | 73 def PointerArith : DiagGroup<"pointer-arith">; |
74 def PoundWarning : DiagGroup<"#warnings">, | |
75 DiagCategory<"#warning Directive">; | |
73 def : DiagGroup<"pointer-to-int-cast">; | 76 def : DiagGroup<"pointer-to-int-cast">; |
74 def : DiagGroup<"redundant-decls">; | 77 def : DiagGroup<"redundant-decls">; |
75 def ReturnType : DiagGroup<"return-type">; | 78 def ReturnType : DiagGroup<"return-type">; |
76 def RvalueCopyCtor : DiagGroup<"rvalue-copy-ctor">; | 79 def BindToTemporaryCopy : DiagGroup<"bind-to-temporary-copy">; |
DougGregor
2010/06/04 23:23:08
I think that the name "rvalue-copy-ctor" for this
Jeffrey Yasskin
2010/06/07 06:44:43
Works for me.
| |
77 def SemiBeforeMethodBody : DiagGroup<"semicolon-before-method-body">; | 80 def SemiBeforeMethodBody : DiagGroup<"semicolon-before-method-body">; |
78 def : DiagGroup<"sequence-point">; | 81 def : DiagGroup<"sequence-point">; |
79 def Shadow : DiagGroup<"shadow">; | 82 def Shadow : DiagGroup<"shadow">; |
80 def : DiagGroup<"shorten-64-to-32">; | 83 def : DiagGroup<"shorten-64-to-32">; |
81 def SignCompare : DiagGroup<"sign-compare">; | 84 def SignCompare : DiagGroup<"sign-compare">; |
82 def : DiagGroup<"synth">; | 85 def : DiagGroup<"synth">; |
83 | 86 |
84 // Preprocessor warnings. | 87 // Preprocessor warnings. |
85 def : DiagGroup<"builtin-macro-redefined">; | 88 def : DiagGroup<"builtin-macro-redefined">; |
86 | 89 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 def : DiagGroup<"endif-labels", [ExtraTokens]>; // -Wendif-labels=-Wendif-tokens | 193 def : DiagGroup<"endif-labels", [ExtraTokens]>; // -Wendif-labels=-Wendif-tokens |
191 def : DiagGroup<"comments", [Comment]>; // -Wcomments = -Wcomment | 194 def : DiagGroup<"comments", [Comment]>; // -Wcomments = -Wcomment |
192 | 195 |
193 // A warning group for warnings that we want to have on by default in clang, | 196 // A warning group for warnings that we want to have on by default in clang, |
194 // but which aren't on by default in GCC. | 197 // but which aren't on by default in GCC. |
195 def NonGCC : DiagGroup<"non-gcc", | 198 def NonGCC : DiagGroup<"non-gcc", |
196 [SignCompare, Conversion, LiteralRange]>; | 199 [SignCompare, Conversion, LiteralRange]>; |
197 | 200 |
198 // A warning group for warnings about GCC extensions. | 201 // A warning group for warnings about GCC extensions. |
199 def GNU : DiagGroup<"gnu", [GNUDesignator, VLA]>; | 202 def GNU : DiagGroup<"gnu", [GNUDesignator, VLA]>; |
LEFT | RIGHT |