[PATCH] D32480: clang-format: Add CompactNamespaces option

Francois Ferrand via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 13 09:04:44 PDT 2017


Typz updated this revision to Diff 102346.
Typz added a comment.

- make "compacted" namespaces always add at most one level of indentation
- compact only namespaces which both start and end on consecutive lines


https://reviews.llvm.org/D32480

Files:
  include/clang/Format/Format.h
  lib/Format/Format.cpp
  lib/Format/NamespaceEndCommentsFixer.cpp
  lib/Format/UnwrappedLineFormatter.cpp
  lib/Format/UnwrappedLineParser.cpp
  unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32480.102346.patch
Type: text/x-patch
Size: 20668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170613/4dd970dd/attachment-0001.bin>


More information about the cfe-commits mailing list