summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/clean-up-code.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2017-03-03 11:16:34 +0000
committerAlexander Kornienko <alexfh@google.com>2017-03-03 11:16:34 +0000
commit17a4b2344e8a4d6b2b6e23bf50d4e77d0a1879c4 (patch)
treeb6262e432983338ddc2bcef269b770f1517d1681 /clang-tools-extra/test/clang-tidy/clean-up-code.cpp
parentbdac9f30c0bf0251e59f84a101230dd61ebfcf16 (diff)
downloadbcm5719-llvm-17a4b2344e8a4d6b2b6e23bf50d4e77d0a1879c4.tar.gz
bcm5719-llvm-17a4b2344e8a4d6b2b6e23bf50d4e77d0a1879c4.zip
[clang-tidy] Format code around applied fixes
Summary: Add -format option (disabled by default for now) to trigger formatting of replacements. Reviewers: ioeric Reviewed By: ioeric Subscribers: kimgr, malcolm.parsons, JDevlieghere, cfe-commits Differential Revision: https://reviews.llvm.org/D30564 llvm-svn: 296864
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/clean-up-code.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/clean-up-code.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/clean-up-code.cpp b/clang-tools-extra/test/clang-tidy/clean-up-code.cpp
index 96b3a45178b..15873ed168d 100644
--- a/clang-tools-extra/test/clang-tidy/clean-up-code.cpp
+++ b/clang-tools-extra/test/clang-tidy/clean-up-code.cpp
@@ -1,4 +1,6 @@
// RUN: %check_clang_tidy %s misc-unused-using-decls %t
+// RUN: %check_clang_tidy %s misc-unused-using-decls %t -- -format-style=none --
+// RUN: %check_clang_tidy %s misc-unused-using-decls %t -- -format-style=llvm --
namespace a { class A {}; }
namespace b {
using a::A;
OpenPOWER on IntegriCloud