summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-07-17 20:25:02 +0000
committerDaniel Jasper <djasper@google.com>2013-07-17 20:25:02 +0000
commitee6d650f91c06df9f5a4a7be2898317044b3c4c1 (patch)
treee2fbcd0326be8b12dbad7f1e3bffcdf4b9eebdcc /clang/unittests/Format/FormatTest.cpp
parentdeb05067907c2dc2d49794b190a4fe2e052e67c8 (diff)
downloadbcm5719-llvm-ee6d650f91c06df9f5a4a7be2898317044b3c4c1.tar.gz
bcm5719-llvm-ee6d650f91c06df9f5a4a7be2898317044b3c4c1.zip
clang-format: Add space in corner case.
Before: SomeType s __attribute__((unused))(InitValue); After: SomeType s __attribute__((unused)) (InitValue); llvm-svn: 186535
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 353fcc7d0bd..05119f37cb1 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -3546,6 +3546,10 @@ TEST_F(FormatTest, UnderstandsUsesOfStarAndAmp) {
verifyFormat("delete *x;", PointerLeft);
}
+TEST_F(FormatTest, UnderstandsAttributes) {
+ verifyFormat("SomeType s __attribute__((unused)) (InitValue);");
+}
+
TEST_F(FormatTest, UnderstandsEllipsis) {
verifyFormat("int printf(const char *fmt, ...);");
verifyFormat("template <class... Ts> void Foo(Ts... ts) { Foo(ts...); }");
OpenPOWER on IntegriCloud