[cfe-commits] r132422 - in /cfe/trunk: include/clang/Basic/DiagnosticGroups.td test/Sema/attr-unknown.c
Ted Kremenek
kremenek at apple.com
Wed Jun 1 13:09:40 PDT 2011
Author: kremenek
Date: Wed Jun 1 15:09:40 2011
New Revision: 132422
URL: http://llvm.org/viewvc/llvm-project?rev=132422&view=rev
Log:
Rename -Wunknown-attributes to -Wattributes to match GCC.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticGroups.td
cfe/trunk/test/Sema/attr-unknown.c
Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=132422&r1=132421&r2=132422&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Wed Jun 1 15:09:40 2011
@@ -146,7 +146,7 @@
def Uninitialized : DiagGroup<"uninitialized">;
def UninitializedMaybe : DiagGroup<"conditional-uninitialized">;
def UnknownPragmas : DiagGroup<"unknown-pragmas">;
-def UnknownAttributes : DiagGroup<"unknown-attributes">;
+def UnknownAttributes : DiagGroup<"attributes">;
def UnnamedTypeTemplateArgs : DiagGroup<"unnamed-type-template-args">;
def UnusedArgument : DiagGroup<"unused-argument">;
def UnusedExceptionParameter : DiagGroup<"unused-exception-parameter">;
Modified: cfe/trunk/test/Sema/attr-unknown.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-unknown.c?rev=132422&r1=132421&r2=132422&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-unknown.c (original)
+++ cfe/trunk/test/Sema/attr-unknown.c Wed Jun 1 15:09:40 2011
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -Wunknown-attributes %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wattributes %s
int x __attribute__((foobar)); // expected-warning {{unknown attribute 'foobar' ignored}}
void z() __attribute__((bogusattr)); // expected-warning {{unknown attribute 'bogusattr' ignored}}
More information about the cfe-commits
mailing list