llvm-project/clang/unittests/Format
Francois Ferrand e56a829e09 clang-format: Add CompactNamespaces option
Summary:
Add CompactNamespaces option, to pack namespace declarations on the
same line (somewhat similar to C++17 nested namespace definition).

With this option, consecutive namespace declarations are kept on the
same line:

  namespace foo { namespace bar {
      ...
  }} // namespace foo::bar

Reviewers: krasimir, djasper, klimek

Reviewed By: djasper

Subscribers: kimgr, cfe-commits, klimek

Tags: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D32480

llvm-svn: 305384
2017-06-14 12:29:47 +00:00
..
CMakeLists.txt [clang-format] Add a NamespaceEndCommentsFixer 2017-02-27 13:28:36 +00:00
CleanupTest.cpp clang-format: [JS] do not clean up duplicated commas. 2017-05-29 08:41:11 +00:00
FormatTest.cpp clang-format: Add CompactNamespaces option 2017-06-14 12:29:47 +00:00
FormatTestComments.cpp [clang-format] Fix alignment of preprocessor trailing comments 2017-06-07 14:05:06 +00:00
FormatTestJS.cpp clang-format: [JS] recognize exported type definitions. 2017-06-07 12:53:22 +00:00
FormatTestJava.cpp [clang-format] Recognize Java logical shift assignment operator 2017-04-11 15:50:04 +00:00
FormatTestObjC.cpp [clang-format] Remove unused using directive, NFC 2017-05-24 12:15:42 +00:00
FormatTestProto.cpp clang-format: Make it very slighly more expensive to wrap between "= {". 2017-03-14 00:40:32 +00:00
FormatTestSelective.cpp [clang-format] Handle trailing comment sections in import statement lines 2017-05-19 10:34:57 +00:00
FormatTestUtils.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
NamespaceEndCommentsFixerTest.cpp clang-format: Add CompactNamespaces option 2017-06-14 12:29:47 +00:00
SortImportsTestJS.cpp clang-format: [JS] Fix line breaks before comments when sorting imports. 2016-09-19 07:02:34 +00:00
SortIncludesTest.cpp clang-format: Correctly calculate affected ranges when sorting #includes. 2016-08-30 21:33:41 +00:00