summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-08-28 07:07:07 +0000
committerDaniel Jasper <djasper@google.com>2013-08-28 07:07:07 +0000
commit11be8ac5905373be3cac0dc65346edd81177412b (patch)
tree47cd13e32a74dc6b61336a2cd98c8049e0ea39a8 /clang/unittests/Format/FormatTest.cpp
parentd66476025ab57eb49cf210f6703737240e7fba8e (diff)
downloadbcm5719-llvm-11be8ac5905373be3cac0dc65346edd81177412b.tar.gz
bcm5719-llvm-11be8ac5905373be3cac0dc65346edd81177412b.zip
clang-format: Fix space in decltype-constexprs.
Before: static constexpr bool Bar = decltype(bar()) ::value; After: static constexpr bool Bar = decltype(bar())::value; llvm-svn: 189449
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 1cc4389f3aa..5002c9ce804 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -138,6 +138,7 @@ TEST_F(FormatTest, FormatsNestedCall) {
TEST_F(FormatTest, NestedNameSpecifiers) {
verifyFormat("vector< ::Type> v;");
verifyFormat("::ns::SomeFunction(::ns::SomeOtherFunction())");
+ verifyFormat("static constexpr bool Bar = decltype(bar())::value;");
}
TEST_F(FormatTest, OnlyGeneratesNecessaryReplacements) {
OpenPOWER on IntegriCloud