[PATCH] D11837: Add Qt brace style configuration option.

Roman Kashitsyn via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 08:57:59 PDT 2015


lifted created this revision.
lifted added a reviewer: djasper.
lifted added subscribers: cfe-commits, klimek.

Add Qt brace style as described on https://wiki.qt.io/Qt_Coding_Style :

* Use attached braces: the opening brace goes on the same line as the start of
  the statement.  If the closing brace is followed by another keyword, it goes
  into the same line as well.

* Exception: Function implementations and class declarations always have the
  left brace on the start of a line.

http://reviews.llvm.org/D11837

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: D11837.31518.patch
Type: text/x-patch
Size: 5106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150807/2ae314e2/attachment.bin>


More information about the cfe-commits mailing list