summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-11-29 08:51:56 +0000
committerDaniel Jasper <djasper@google.com>2013-11-29 08:51:56 +0000
commit1556b5933848fe363811a1e71ac04a5f9c4802b2 (patch)
tree072bedb328644d02fc93eb69013ed1e0bd7e711a /clang/unittests/Format/FormatTest.cpp
parente40caf9ad2e0566f8293fc704379db75edf08cf6 (diff)
downloadbcm5719-llvm-1556b5933848fe363811a1e71ac04a5f9c4802b2.tar.gz
bcm5719-llvm-1556b5933848fe363811a1e71ac04a5f9c4802b2.zip
clang-format: Correctly handle Qt's Q_SLOTS.
This should fix llvm.org/PR17241. Maybe it sticks this time :-). llvm-svn: 195953
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index e1960d290f8..ccad1d4b004 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -1540,6 +1540,8 @@ TEST_F(FormatTest, UnderstandsAccessSpecifiers) {
verifyFormat("class A {\n"
"public slots:\n"
" void f() {}\n"
+ "public Q_SLOTS:\n"
+ " void f() {}\n"
"};");
}
OpenPOWER on IntegriCloud