[PATCH] D13210: Make brace styles more configurable

Daniel Jasper via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 28 06:15:50 PDT 2015


djasper created this revision.
djasper added a reviewer: klimek.
djasper added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

Add individual brace flags for the different aspects of wrapping braces and make Allman, GNU, etc. just presets for them.

This patch isn't complete yet, still need to verify the individual presets some more (I think we don't have full test coverage there) and comment, etc. For now, I'd like a second opinion on whether the approach is sound.

http://reviews.llvm.org/D13210

Files:
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  lib/Format/TokenAnnotator.cpp
  lib/Format/UnwrappedLineFormatter.cpp
  lib/Format/UnwrappedLineParser.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13210.35857.patch
Type: text/x-patch
Size: 14049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150928/47555fa9/attachment-0001.bin>


More information about the cfe-commits mailing list