[cfe-commits] [clang-tools-extra] r172407 - in /clang-tools-extra/trunk/test: CMakeLists.txt clang-format/ clang-format/diagnostic.cpp

Alexander Kornienko alexfh at google.com
Mon Jan 14 05:57:06 PST 2013


Author: alexfh
Date: Mon Jan 14 07:57:05 2013
New Revision: 172407

URL: http://llvm.org/viewvc/llvm-project?rev=172407&view=rev
Log:
Added a test for clang-format diagnostics.

Added:
    clang-tools-extra/trunk/test/clang-format/
    clang-tools-extra/trunk/test/clang-format/diagnostic.cpp
Modified:
    clang-tools-extra/trunk/test/CMakeLists.txt

Modified: clang-tools-extra/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/CMakeLists.txt?rev=172407&r1=172406&r2=172407&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/test/CMakeLists.txt Mon Jan 14 07:57:05 2013
@@ -22,7 +22,7 @@
   clang clang-headers FileCheck count not
 
   # Individual tools we test.
-  remove-cstr-calls cpp11-migrate
+  remove-cstr-calls cpp11-migrate clang-format
   )
 
 add_lit_testsuite(check-clang-tools "Running the Clang extra tools' regression tests"

Added: clang-tools-extra/trunk/test/clang-format/diagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clang-format/diagnostic.cpp?rev=172407&view=auto
==============================================================================
--- clang-tools-extra/trunk/test/clang-format/diagnostic.cpp (added)
+++ clang-tools-extra/trunk/test/clang-format/diagnostic.cpp Mon Jan 14 07:57:05 2013
@@ -0,0 +1,5 @@
+// RUN: clang-format 2>&1 >/dev/null %s |FileCheck %s
+// REQUIRES: shell
+
+}
+// CHECK: :[[@LINE-1]]:1: error: unexpected '}'





More information about the cfe-commits mailing list