diff options
author | Daniel Jasper <djasper@google.com> | 2013-11-23 17:53:41 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-11-23 17:53:41 +0000 |
commit | 84c47a10741c7be02ac448833f32beaf53c0abde (patch) | |
tree | 4eddf16b345364779beeeee750f5eff2d5e0c738 /clang/unittests/Format/FormatTest.cpp | |
parent | edaa444bda3fdfdf03a25ccbce4aa040bb6cccd0 (diff) | |
download | bcm5719-llvm-84c47a10741c7be02ac448833f32beaf53c0abde.tar.gz bcm5719-llvm-84c47a10741c7be02ac448833f32beaf53c0abde.zip |
clang-format: Support Qt's slot access specifiers.
This fixes llvm.org/PR17241.
llvm-svn: 195555
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 1dc5215d187..d61dfc44d90 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -1537,6 +1537,10 @@ TEST_F(FormatTest, UnderstandsAccessSpecifiers) { " private:\n" " void f() {}\n" "};"); + verifyFormat("class A {\n" + "public slots:\n" + " void f() {}\n" + "};"); } TEST_F(FormatTest, SeparatesLogicalBlocks) { |