summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/fix.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-03-27 10:24:11 +0000
committerAlexander Kornienko <alexfh@google.com>2014-03-27 10:24:11 +0000
commit38d81b41eb7eca39d62b031e2a19546d40112107 (patch)
tree7c645d9d14f024ef48979358d67970e0c5a47f13 /clang-tools-extra/test/clang-tidy/fix.cpp
parentf17da19f34cf4846a4a3e5aeed7cc24959ec379e (diff)
downloadbcm5719-llvm-38d81b41eb7eca39d62b031e2a19546d40112107.tar.gz
bcm5719-llvm-38d81b41eb7eca39d62b031e2a19546d40112107.zip
Output messages when clang-tidy applies fix-its.
Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3192 llvm-svn: 204909
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/fix.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/fix.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/fix.cpp b/clang-tools-extra/test/clang-tidy/fix.cpp
index 3af299db8fa..a5316ca725b 100644
--- a/clang-tools-extra/test/clang-tidy/fix.cpp
+++ b/clang-tools-extra/test/clang-tidy/fix.cpp
@@ -1,10 +1,14 @@
// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
-// RUN: clang-tidy %t.cpp -fix --
+// RUN: clang-tidy %t.cpp -fix -- > %t.msg 2>&1
// RUN: FileCheck -input-file=%t.cpp %s
+// RUN: FileCheck -input-file=%t.msg -check-prefix=CHECK-MESSAGES %s
namespace i {
}
// CHECK: } // namespace i
+// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
class A { A(int i); };
// CHECK: class A { explicit A(int i); };
+// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
+// CHECK-MESSAGES: clang-tidy applied 2 of 2 suggested fixes.
OpenPOWER on IntegriCloud