summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-04-11 08:48:20 +0000
committerDaniel Jasper <djasper@google.com>2013-04-11 08:48:20 +0000
commit6e8f4edf2d0ce63bb17dc77a006b94b3812eb335 (patch)
tree4062b7a7796e304be4d3cf179d9c5493507cc126 /clang/unittests/Format/FormatTest.cpp
parent8c4c1266533ae0640a3a593f0edb82eba562f8c2 (diff)
downloadbcm5719-llvm-6e8f4edf2d0ce63bb17dc77a006b94b3812eb335.tar.gz
bcm5719-llvm-6e8f4edf2d0ce63bb17dc77a006b94b3812eb335.zip
Fix formatting of overloaded assignment operators.
Before: SomeType &operator=(const SomeType & S); After: SomeType &operator=(const SomeType &S); llvm-svn: 179270
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 5b5f483c62b..09fbce830e3 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -2374,6 +2374,7 @@ TEST_F(FormatTest, UndestandsOverloadedOperators) {
" const aaaaaaaaaaaaaaaaaaaaa &right) {\n"
" return left.group < right.group;\n"
"}");
+ verifyFormat("SomeType &operator=(const SomeType &S);");
verifyGoogleFormat("operator void*();");
verifyGoogleFormat("operator SomeType<SomeType<int>>();");
OpenPOWER on IntegriCloud