summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-09-27 09:49:20 +0000
committerIlya Biryukov <ibiryukov@google.com>2019-09-27 09:49:20 +0000
commit4627bdedd90de9b5fb9115ac2ffae83f5ce9096e (patch)
tree6663e2962676b5ce851075bbc6ae59f11aa4b86b /clang/unittests/Format/FormatTest.cpp
parentb8cf059faccb794c47be6775f99457992ac6b2da (diff)
downloadbcm5719-llvm-4627bdedd90de9b5fb9115ac2ffae83f5ce9096e.tar.gz
bcm5719-llvm-4627bdedd90de9b5fb9115ac2ffae83f5ce9096e.zip
Revert r373056: [clang-format] Reference qualifiers in member templates causing extra indentation
Reason: this breaks unit tests. llvm-svn: 373059
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index ecb3dddfdf8..581d15672ba 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -14373,41 +14373,6 @@ TEST_F(FormatTest, AmbersandInLamda) {
verifyFormat("auto lambda = [&a = a]() { a = 2; };", AlignStyle);
}
-TEST_F(FormatTest, RefQualifiedTemplateMember) {
- FormatStyle AlignStyle = getLLVMStyle();
- AlignStyle.AlwaysBreakTemplateDeclarations = FormatStyle::BTDS_Yes;
-
- verifyFormat("struct f {\n"
- " template <class T>\n"
- " int &foo() & noexcept {}\n"
- "};",
- AlignStyle);
-
- verifyFormat("struct f {\n"
- " template <class T>\n"
- " int &foo() && noexcept {}\n"
- "};",
- AlignStyle);
-
- verifyFormat("struct f {\n"
- " template <class T>\n"
- " int &foo() const & noexcept {}\n"
- "};",
- AlignStyle);
-
- verifyFormat("struct f {\n"
- " template <class T>\n"
- " int &foo() const & noexcept {}\n"
- "};",
- AlignStyle);
-
- verifyFormat("struct f {\n"
- " template <class T>\n"
- " auto foo() && noexcept -> int & {}\n"
- "};",
- AlignStyle);
-}
-
} // end namespace
} // end namespace format
} // end namespace clang
OpenPOWER on IntegriCloud