[PATCH] Fixes bug 20587 - Add K&R break before braces style

Roman Kashitsyn romankashicin at gmail.com
Sat Aug 9 09:40:26 PDT 2014


Hi djasper,

http://llvm.org/bugs/show_bug.cgi?id=20587

Added K&R style. It could be enabled by the following option:

```
BreakBeforeBraces: KernighanRitchie
```

This style is like `Attach`, but break *only* before function
declarations.

As I can see, no additional logic required to support this style, any
style different from other styles automagically satisfies K&R.

http://reviews.llvm.org/D4837

Files:
  docs/ClangFormatStyleOptions.rst
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4837.12325.patch
Type: text/x-patch
Size: 5366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140809/e078589c/attachment.bin>


More information about the cfe-commits mailing list