summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/fix.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-10-17 17:25:02 +0000
committerAlexander Kornienko <alexfh@google.com>2016-10-17 17:25:02 +0000
commit98d3391a59992b6cfedd4e620c910071622075bf (patch)
tree5b5f88dba953fd9dfa9893650245c3a0e026c84c /clang-tools-extra/test/clang-tidy/fix.cpp
parent083f1626f540954f712cca55fc6e3371f890e80e (diff)
downloadbcm5719-llvm-98d3391a59992b6cfedd4e620c910071622075bf.tar.gz
bcm5719-llvm-98d3391a59992b6cfedd4e620c910071622075bf.zip
[clang-tidy] Clean up code after applying replacements.
Summary: Remove empty namespaces and initializer list commas / colons in affected ranges. Initial patch: proper options for enabling the cleanup and specifying the format style are needed. Reviewers: hokein, ioeric Subscribers: beanz, mgorny, cfe-commits Differential Revision: https://reviews.llvm.org/D24572 llvm-svn: 284399
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/fix.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/fix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/fix.cpp b/clang-tools-extra/test/clang-tidy/fix.cpp
index 80b215d82b8..db6bc225ad2 100644
--- a/clang-tools-extra/test/clang-tidy/fix.cpp
+++ b/clang-tools-extra/test/clang-tidy/fix.cpp
@@ -5,6 +5,7 @@
// RUN: FileCheck -input-file=%t.yaml -check-prefix=CHECK-YAML %s
namespace i {
+void f(); // So that the namespace isn't empty.
}
// CHECK: } // namespace i
// CHECK-MESSAGES: note: FIX-IT applied suggested code changes
OpenPOWER on IntegriCloud