diff options
author | Daniel Jasper <djasper@google.com> | 2016-03-01 21:41:58 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-03-01 21:41:58 +0000 |
commit | 56ef6aca2b3f6887f7c219932c1eafe0c5b7a000 (patch) | |
tree | 0b79056a033dec4068baf0693d1317ad17c1a345 /clang/unittests/Format/FormatTest.cpp | |
parent | 46e57fd0735b2f57cd19a40eefcaa750b0d32dcc (diff) | |
download | bcm5719-llvm-56ef6aca2b3f6887f7c219932c1eafe0c5b7a000.tar.gz bcm5719-llvm-56ef6aca2b3f6887f7c219932c1eafe0c5b7a000.zip |
[clang-format] Detect constructor initializers preceded by `noexcept`.
Patch by Erik Kessler, thank you.
llvm-svn: 262402
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 4872565e04a..075757b0761 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -10389,6 +10389,9 @@ TEST_F(FormatTest, BreakConstructorInitializersBeforeComma) { verifyFormat("SomeClass::Constructor()\n" " : a(a) {}", Style); + verifyFormat("SomeClass::Constructor() noexcept\n" + " : a(a) {}", + Style); verifyFormat("SomeClass::Constructor()\n" " : a(a)\n" " , b(b)\n" |