r193056 - Switch attribute test line endings from CRLF
Alp Toker
alp at nuanti.com
Sun Oct 20 12:04:19 PDT 2013
Author: alp
Date: Sun Oct 20 14:04:19 2013
New Revision: 193056
URL: http://llvm.org/viewvc/llvm-project?rev=193056&view=rev
Log:
Switch attribute test line endings from CRLF
The convention is LF unless specifically testing line endings.
Modified:
cfe/trunk/test/CodeGenCXX/attr-cleanup.cpp
cfe/trunk/test/Sema/attr-ownership.c
cfe/trunk/test/SemaCXX/attr-cleanup-gcc.cpp
cfe/trunk/test/SemaCXX/attr-cleanup.cpp
Modified: cfe/trunk/test/CodeGenCXX/attr-cleanup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/attr-cleanup.cpp?rev=193056&r1=193055&r2=193056&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/attr-cleanup.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/attr-cleanup.cpp Sun Oct 20 14:04:19 2013
@@ -1,11 +1,11 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
-
-namespace N {
- void free(void *i) {}
-}
-
-int main(void) {
- // CHECK: call void @_ZN1N4freeEPv
- void *fp __attribute__((cleanup(N::free)));
- return 0;
-}
+// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+
+namespace N {
+ void free(void *i) {}
+}
+
+int main(void) {
+ // CHECK: call void @_ZN1N4freeEPv
+ void *fp __attribute__((cleanup(N::free)));
+ return 0;
+}
Modified: cfe/trunk/test/Sema/attr-ownership.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/attr-ownership.c?rev=193056&r1=193055&r2=193056&view=diff
==============================================================================
--- cfe/trunk/test/Sema/attr-ownership.c (original)
+++ cfe/trunk/test/Sema/attr-ownership.c Sun Oct 20 14:04:19 2013
@@ -1,19 +1,19 @@
-// RUN: %clang_cc1 %s -verify
-
-void f1(void) __attribute__((ownership_takes("foo"))); // expected-error {{'ownership_takes' attribute requires parameter 1 to be an identifier}}
-void *f2(void) __attribute__((ownership_returns(foo, 1, 2))); // expected-error {{attribute takes no more than 1 argument}}
-void f3(void) __attribute__((ownership_holds(foo, 1))); // expected-error {{'ownership_holds' attribute parameter 1 is out of bounds}}
-void *f4(void) __attribute__((ownership_returns(foo)));
-void f5(void) __attribute__((ownership_holds(foo))); // expected-error {{attribute takes at least 2 arguments}}
-void f6(void) __attribute__((ownership_holds(foo, 1, 2, 3))); // expected-error {{'ownership_holds' attribute parameter 1 is out of bounds}}
-void f7(void) __attribute__((ownership_takes(foo))); // expected-error {{attribute takes at least 2 arguments}}
-void f8(int *i, int *j, int k) __attribute__((ownership_holds(foo, 1, 2, 4))); // expected-error {{'ownership_holds' attribute parameter 3 is out of bounds}}
-
-int f9 __attribute__((ownership_takes(foo, 1))); // expected-warning {{'ownership_takes' attribute only applies to functions}}
-
-void f10(int i) __attribute__((ownership_holds(foo, 1))); // expected-error {{'ownership_holds' attribute only applies to pointer arguments}}
-void *f11(float i) __attribute__((ownership_returns(foo, 1))); // expected-error {{'ownership_returns' attribute only applies to integer arguments}}
-void *f12(float i, int k, int f, int *j) __attribute__((ownership_returns(foo, 4))); // expected-error {{'ownership_returns' attribute only applies to integer arguments}}
-
-void f13(int *i, int *j) __attribute__((ownership_holds(foo, 1))) __attribute__((ownership_takes(foo, 2)));
-void f14(int i, int j, int *k) __attribute__((ownership_holds(foo, 3))) __attribute__((ownership_takes(foo, 3))); // expected-error {{'ownership_holds' and 'ownership_takes' attributes are not compatible}}
+// RUN: %clang_cc1 %s -verify
+
+void f1(void) __attribute__((ownership_takes("foo"))); // expected-error {{'ownership_takes' attribute requires parameter 1 to be an identifier}}
+void *f2(void) __attribute__((ownership_returns(foo, 1, 2))); // expected-error {{attribute takes no more than 1 argument}}
+void f3(void) __attribute__((ownership_holds(foo, 1))); // expected-error {{'ownership_holds' attribute parameter 1 is out of bounds}}
+void *f4(void) __attribute__((ownership_returns(foo)));
+void f5(void) __attribute__((ownership_holds(foo))); // expected-error {{attribute takes at least 2 arguments}}
+void f6(void) __attribute__((ownership_holds(foo, 1, 2, 3))); // expected-error {{'ownership_holds' attribute parameter 1 is out of bounds}}
+void f7(void) __attribute__((ownership_takes(foo))); // expected-error {{attribute takes at least 2 arguments}}
+void f8(int *i, int *j, int k) __attribute__((ownership_holds(foo, 1, 2, 4))); // expected-error {{'ownership_holds' attribute parameter 3 is out of bounds}}
+
+int f9 __attribute__((ownership_takes(foo, 1))); // expected-warning {{'ownership_takes' attribute only applies to functions}}
+
+void f10(int i) __attribute__((ownership_holds(foo, 1))); // expected-error {{'ownership_holds' attribute only applies to pointer arguments}}
+void *f11(float i) __attribute__((ownership_returns(foo, 1))); // expected-error {{'ownership_returns' attribute only applies to integer arguments}}
+void *f12(float i, int k, int f, int *j) __attribute__((ownership_returns(foo, 4))); // expected-error {{'ownership_returns' attribute only applies to integer arguments}}
+
+void f13(int *i, int *j) __attribute__((ownership_holds(foo, 1))) __attribute__((ownership_takes(foo, 2)));
+void f14(int i, int j, int *k) __attribute__((ownership_holds(foo, 3))) __attribute__((ownership_takes(foo, 3))); // expected-error {{'ownership_holds' and 'ownership_takes' attributes are not compatible}}
Modified: cfe/trunk/test/SemaCXX/attr-cleanup-gcc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/attr-cleanup-gcc.cpp?rev=193056&r1=193055&r2=193056&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/attr-cleanup-gcc.cpp (original)
+++ cfe/trunk/test/SemaCXX/attr-cleanup-gcc.cpp Sun Oct 20 14:04:19 2013
@@ -1,16 +1,16 @@
-// RUN: %clang_cc1 %s -verify -fsyntax-only -Wgcc-compat
-
-namespace N {
- void c1(int *a) {}
-}
-
-void c2(int *a) {}
-
-template <typename Ty>
-void c3(Ty *a) {}
-
-void t3() {
- int v1 __attribute__((cleanup(N::c1))); // expected-warning {{GCC does not allow the 'cleanup' attribute argument to be anything other than a simple identifier}}
- int v2 __attribute__((cleanup(c2)));
- int v3 __attribute__((cleanup(c3<int>))); // expected-warning {{GCC does not allow the 'cleanup' attribute argument to be anything other than a simple identifier}}
-}
+// RUN: %clang_cc1 %s -verify -fsyntax-only -Wgcc-compat
+
+namespace N {
+ void c1(int *a) {}
+}
+
+void c2(int *a) {}
+
+template <typename Ty>
+void c3(Ty *a) {}
+
+void t3() {
+ int v1 __attribute__((cleanup(N::c1))); // expected-warning {{GCC does not allow the 'cleanup' attribute argument to be anything other than a simple identifier}}
+ int v2 __attribute__((cleanup(c2)));
+ int v3 __attribute__((cleanup(c3<int>))); // expected-warning {{GCC does not allow the 'cleanup' attribute argument to be anything other than a simple identifier}}
+}
Modified: cfe/trunk/test/SemaCXX/attr-cleanup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/attr-cleanup.cpp?rev=193056&r1=193055&r2=193056&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/attr-cleanup.cpp (original)
+++ cfe/trunk/test/SemaCXX/attr-cleanup.cpp Sun Oct 20 14:04:19 2013
@@ -1,29 +1,29 @@
-// RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-gcc-compat
-
-namespace N {
- void c1(int *a) {}
-}
-
-class C {
- static void c2(int *a) {} // expected-note {{implicitly declared private here}} expected-note {{implicitly declared private here}}
-};
-
-void t1() {
- int v1 __attribute__((cleanup(N::c1)));
- int v2 __attribute__((cleanup(N::c2))); // expected-error {{no member named 'c2' in namespace 'N'}}
- int v3 __attribute__((cleanup(C::c2))); // expected-error {{'c2' is a private member of 'C'}}
-}
-
-class D : public C {
- void t2() {
- int v1 __attribute__((cleanup(c2))); // expected-error {{'c2' is a private member of 'C'}}
- }
-};
-
-namespace E {
- void c3(int *a) {} // expected-note {{candidate function}}
- void c3() {} // expected-note {{candidate function}}
- void t3() {
- int v1 __attribute__((cleanup(c3))); // expected-error {{'c3' is not a single function}}
- }
-}
+// RUN: %clang_cc1 %s -verify -fsyntax-only -Wno-gcc-compat
+
+namespace N {
+ void c1(int *a) {}
+}
+
+class C {
+ static void c2(int *a) {} // expected-note {{implicitly declared private here}} expected-note {{implicitly declared private here}}
+};
+
+void t1() {
+ int v1 __attribute__((cleanup(N::c1)));
+ int v2 __attribute__((cleanup(N::c2))); // expected-error {{no member named 'c2' in namespace 'N'}}
+ int v3 __attribute__((cleanup(C::c2))); // expected-error {{'c2' is a private member of 'C'}}
+}
+
+class D : public C {
+ void t2() {
+ int v1 __attribute__((cleanup(c2))); // expected-error {{'c2' is a private member of 'C'}}
+ }
+};
+
+namespace E {
+ void c3(int *a) {} // expected-note {{candidate function}}
+ void c3() {} // expected-note {{candidate function}}
+ void t3() {
+ int v1 __attribute__((cleanup(c3))); // expected-error {{'c3' is not a single function}}
+ }
+}
More information about the cfe-commits
mailing list