summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-static-assert.c
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-05-09 14:56:28 +0000
committerAlexander Kornienko <alexfh@google.com>2017-05-09 14:56:28 +0000
commitd0488d427c74564a1f95849c5faa9b1f3b9ee45b (patch)
tree51097882a9c431d1f0a88d9d969a53b1f93b6823 /clang-tools-extra/test/clang-tidy/misc-static-assert.c
parent66fb0d9768edf37c65c20e9d4dafc5d7f96669de (diff)
downloadbcm5719-llvm-d0488d427c74564a1f95849c5faa9b1f3b9ee45b.tar.gz
bcm5719-llvm-d0488d427c74564a1f95849c5faa9b1f3b9ee45b.zip
Change EOL style to LF. NFC
llvm-svn: 302534
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-static-assert.c')
-rw-r--r--clang-tools-extra/test/clang-tidy/misc-static-assert.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-static-assert.c b/clang-tools-extra/test/clang-tidy/misc-static-assert.c
index 0fca94583cf..e3e8304977c 100644
--- a/clang-tools-extra/test/clang-tidy/misc-static-assert.c
+++ b/clang-tools-extra/test/clang-tidy/misc-static-assert.c
@@ -1,27 +1,27 @@
-// RUN: %check_clang_tidy %s misc-static-assert %t -- -- -std=c11
-// RUN: clang-tidy %s -checks=-*,misc-static-assert -- -std=c99 | count 0
-
-void abort() {}
-#ifdef NDEBUG
-#define assert(x) 1
-#else
-#define assert(x) \
- if (!(x)) \
- abort()
-#endif
-
-void f(void) {
- int x = 1;
- assert(x == 0);
- // CHECK-FIXES: {{^ }}assert(x == 0);
-
- #define static_assert(x, msg) _Static_assert(x, msg)
- assert(11 == 5 + 6);
- // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: found assert() that could be
- // CHECK-FIXES: {{^ }}static_assert(11 == 5 + 6, "");
- #undef static_assert
-
- assert(10 == 5 + 5);
- // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: found assert() that could be
- // CHECK-FIXES: {{^ }}static_assert(10 == 5 + 5, "");
-}
+// RUN: %check_clang_tidy %s misc-static-assert %t -- -- -std=c11
+// RUN: clang-tidy %s -checks=-*,misc-static-assert -- -std=c99 | count 0
+
+void abort() {}
+#ifdef NDEBUG
+#define assert(x) 1
+#else
+#define assert(x) \
+ if (!(x)) \
+ abort()
+#endif
+
+void f(void) {
+ int x = 1;
+ assert(x == 0);
+ // CHECK-FIXES: {{^ }}assert(x == 0);
+
+ #define static_assert(x, msg) _Static_assert(x, msg)
+ assert(11 == 5 + 6);
+ // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: found assert() that could be
+ // CHECK-FIXES: {{^ }}static_assert(11 == 5 + 6, "");
+ #undef static_assert
+
+ assert(10 == 5 + 5);
+ // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: found assert() that could be
+ // CHECK-FIXES: {{^ }}static_assert(10 == 5 + 5, "");
+}
OpenPOWER on IntegriCloud