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

Daniel Jasper djasper at google.com
Sun Aug 10 02:02:00 PDT 2014


I have done a bit more reading and now I am thoroughly confused:
1. I think Linux uses K&R style. So we should not need to introduce a new style but fix Linux style instead.
2. According to all resources I have found, K&R style also puts the "{" on the new line for classes and namespaces.
3. Neither Linux nor K&R style should but the "{" on the new line for structs, so we will need to handle structs and classes differently.

Does that make sense?

http://reviews.llvm.org/D4837






More information about the cfe-commits mailing list