]> granicus.if.org Git - clang/commit
Fixes bug 20587 - Add K&R break before braces style
authorRoman Kashitsyn <romankashicin@gmail.com>
Mon, 11 Aug 2014 12:18:01 +0000 (12:18 +0000)
committerRoman Kashitsyn <romankashicin@gmail.com>
Mon, 11 Aug 2014 12:18:01 +0000 (12:18 +0000)
commit80e26f2ce1aec2894ab293c000d32e8d275a097d
tree06df8bd5933dfa1df4fceba29c1036cca0894d37
parent2c87bd9b9ab88772b972899dd2ced017307c7d07
Fixes bug 20587 - Add K&R break before braces style

Summary:
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.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D4837

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215354 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTest.cpp