diff options
author | Daniel Jasper <djasper@google.com> | 2015-04-23 12:59:09 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-04-23 12:59:09 +0000 |
commit | caf84fe21eb9ac60b7dbbc49bce41c9cee0c6609 (patch) | |
tree | 72062e3c8ba13ad66258e213933b3b514215f62a /clang/unittests/Format/FormatTest.cpp | |
parent | d0be0a989714dcef56f8d7bd977d16fb43050330 (diff) | |
download | bcm5719-llvm-caf84fe21eb9ac60b7dbbc49bce41c9cee0c6609.tar.gz bcm5719-llvm-caf84fe21eb9ac60b7dbbc49bce41c9cee0c6609.zip |
clang-format: Allow splitting "= default" and "= delete".
Otherwise, this can violate the column limit.
llvm-svn: 235592
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index de46bba6340..0f2545105ee 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/unittests/Format/FormatTest.cpp @@ -2497,6 +2497,14 @@ TEST_F(FormatTest, FormatsSmallMacroDefinitionsInSingleLine) { TEST_F(FormatTest, DoesNotBreakPureVirtualFunctionDefinition) { verifyFormat("virtual void write(ELFWriter *writerrr,\n" " OwningPtr<FileOutputBuffer> &buffer) = 0;"); + + // Do break defaulted and deleted functions. + verifyFormat("virtual void ~Deeeeeeeestructor() =\n" + " default;", + getLLVMStyleWithColumns(40)); + verifyFormat("virtual void ~Deeeeeeeestructor() =\n" + " delete;", + getLLVMStyleWithColumns(40)); } TEST_F(FormatTest, BreaksStringLiteralsOnlyInDefine) { |