[cfe-commits] r86241 - /cfe/trunk/include/clang/Basic/DiagnosticGroups.td

Fariborz Jahanian fjahanian at apple.com
Fri Nov 6 08:24:45 PST 2009


On Nov 5, 2009, at 11:53 PM, John McCall wrote:

> Author: rjmccall
> Date: Fri Nov  6 01:53:21 2009
> New Revision: 86241
>
> URL: http://llvm.org/viewvc/llvm-project?rev=86241&view=rev
> Log:
> Create a warning group "non-gcc" for diagnostics which are not enabled
> by default in GCC.  Users who want to emulate gcc's warning behavior
> exactly should be able to use CC="clang -Wno-non-gcc";  this should  
> help
> projects to transition.
>
>
> Modified:
>    cfe/trunk/include/clang/Basic/DiagnosticGroups.td
>
> Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=86241&r1=86240&r2=86241&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
> +++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Fri Nov  6  
> 01:53:21 2009
> @@ -159,3 +159,7 @@
> def : DiagGroup<"", [Extra]>;  // -W = -Wextra
> def : DiagGroup<"endif-labels", [ExtraTokens]>; // endif-labels =  
> endif-tokens
>
> +// A warning group for warnings that we want to have on by default  
> in clang,
> +// but which aren't no by default in GCC.
Typo: 'no' -> 'on'

- fariborz

> +def NonGCC : DiagGroup<"non-gcc",
> +    [SignCompare]>;
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list