From 94ea5bb1159d935f3b37d05f442a78daad0a0d05 Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Thu, 22 May 2014 15:13:48 +0000 Subject: [PATCH] clang-format: Add basic test for -style=none. llvm-svn: 209447 --- clang/test/Format/disable-format.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 clang/test/Format/disable-format.cpp diff --git a/clang/test/Format/disable-format.cpp b/clang/test/Format/disable-format.cpp new file mode 100644 index 0000000..59484b3 --- /dev/null +++ b/clang/test/Format/disable-format.cpp @@ -0,0 +1,6 @@ +// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp +// RUN: clang-format -style=none -i %t.cpp +// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s + +// CHECK: int i; +int i; -- 2.7.4