From 431f0c250b4e53f16be0bf09042a8ad0c71bd305 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209447 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Format/disable-format.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/Format/disable-format.cpp diff --git a/test/Format/disable-format.cpp b/test/Format/disable-format.cpp new file mode 100644 index 0000000000..59484b3df1 --- /dev/null +++ b/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.40.0