diff options
author | Daniel Jasper <djasper@google.com> | 2017-11-06 12:11:51 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2017-11-06 12:11:51 +0000 |
commit | 0064a0c5f1b24a34a81c8e0fc84b355a6ad8555d (patch) | |
tree | 915bd7d06fe808e1aebd6705442c3a44496328aa /unittests | |
parent | 8d0d13752ed33d8a22572dce9e063992d92d0556 (diff) |
[clang-format] Handle unary operator overload with arguments and specifiers
Before:
int operator++(int)noexcept;
After:
int operator++(int) noexcept;
Patch by Igor Sugak. Thank you!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 82530c0376..c61a56921a 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -5591,6 +5591,7 @@ TEST_F(FormatTest, UnderstandsOverloadedOperators) { verifyFormat("bool operator!=();"); verifyFormat("int operator+();"); verifyFormat("int operator++();"); + verifyFormat("int operator++(int) volatile noexcept;"); verifyFormat("bool operator,();"); verifyFormat("bool operator();"); verifyFormat("bool operator()();"); |