[PATCH] D12492: [Clang-Format] Add AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch Style to avoid cuddled else/catch

Paul Hoad via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 4 04:05:21 PDT 2015


MyDeveloperDay retitled this revision from "[Clang-Format] Add AlwaysBreakBeforeElse Style to avoid cuddled else" to "[Clang-Format] Add AlwaysBreakBeforeElse and AlwaysBreakBeforeCatch Style to avoid cuddled else/catch".
MyDeveloperDay updated the summary for this revision.
MyDeveloperDay updated this revision to Diff 34023.
MyDeveloperDay added a comment.

As this patch has not been reviewed yet, and in using the tool in my own environment I noticed the same is true for catch statments, I want to see 
try {
}
catch (exception &e) {
}

not

try {
} catch (exception &e) {
}


http://reviews.llvm.org/D12492

Files:
  docs/ClangFormatStyleOptions.rst
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  lib/Format/UnwrappedLineParser.cpp
  unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12492.34023.patch
Type: text/x-patch
Size: 6773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150904/0b5cc891/attachment.bin>


More information about the cfe-commits mailing list