lifted updated this revision to Diff 31660.
lifted added a comment.
Removed Qt brace style, add WebKit brace style.
Changed default brace style in the WebKit configuration to BS_WebKit.
http://reviews.llvm.org/D11837
Files:
docs/ClangFormatStyleOptions.rst
include/clang/Format/Format.h
l
klimek added a comment.
Ah, ok. Interestingly, our current Webkit style uses BS_Stroustrup, which is
incorrect for } else {. So yep, implementing BS_Webkit sounds like a win.
http://reviews.llvm.org/D11837
___
cfe-commits mailing list
cfe-commits@
lifted added a comment.
In http://reviews.llvm.org/D11837#220394, @klimek wrote:
> Webkit doesn't break for classes:
That's why we need to revert changes in UnwrappedLineParser.cpp.
The funny thing with WebKit style is that we don't need to add any logic to
deal with it, any style different fr
klimek added a comment.
Webkit doesn't break for classes:
class MyClass {
...
};
http://reviews.llvm.org/D11837
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
lifted added a comment.
Hooray, I've found the style I need - it's WebKit
https://www.webkit.org/coding/coding-style.html
So I believe there are other people waiting for the same style as me -
https://code.google.com/p/chromium/issues/detail?id=454958
How do you feel about renaming `BS_Qt` -> `
lifted added a comment.
> Hm, the referenced style guide doesn't say anything about namespaces.
You're right. Futhermore, it's hard to find any namespaces in qt repos at all -
Qt uses a macro for conditional compilation with namespaces.
> I also couldn't find anything in the qt source repo (ju
klimek added a comment.
Hm, the referenced style guide doesn't say anything about namespaces. I also
couldn't find anything in the qt source repo (just took a quick look though).
Do you have an example of why Qt projects shouldn't just use BS_Linux?
http://reviews.llvm.org/D11837
__
djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.
Looks good. Do you have commit access?
Comment at: include/clang/Format/Format.h:180
@@ +179,3 @@
+BS_GNU,
+/// Like ``Attach``, but break before braces on functions