summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-06-30 13:54:27 +0000
committerDaniel Jasper <djasper@google.com>2014-06-30 13:54:27 +0000
commit2520fe9662b52796a66e9b92bb88c76702929e6a (patch)
tree7cf477d83c6bf0aef2bb248031d9eb55f4aab324 /clang/unittests/Format/FormatTest.cpp
parent91beebd04ae90a5f637e080ddf7a340c9c7eb000 (diff)
downloadbcm5719-llvm-2520fe9662b52796a66e9b92bb88c76702929e6a.tar.gz
bcm5719-llvm-2520fe9662b52796a66e9b92bb88c76702929e6a.zip
clang-format: Support member function reference qualifiers.
Before: string // break operator()() & {} After: string // break operator()() & {} llvm-svn: 212041
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index 75eea982753..96274fc2031 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -4682,6 +4682,11 @@ TEST_F(FormatTest, UnderstandsOverloadedOperators) {
verifyFormat("Deleted &operator=(const Deleted &)&& = delete;");
verifyGoogleFormat("Deleted& operator=(const Deleted&)& = default;");
verifyGoogleFormat("Deleted& operator=(const Deleted&)&& = delete;");
+
+ verifyFormat("string // break\n"
+ "operator()() & {}");
+ verifyFormat("string // break\n"
+ "operator()() && {}");
}
TEST_F(FormatTest, UnderstandsNewAndDelete) {
OpenPOWER on IntegriCloud