This patch adds two new spacing options.
SpaceAfterTemplate inserts a space between the template keyword and the opening chevron.
SpacesInBraces inserts spaces in short and empty brace blocks.
Patch by cameron314.
Paths
| Differential D19066
clang-format: `SpaceAfterTemplate` and `SpacesInBraces` options AbandonedPublic Authored by MyDeveloperDay on Apr 13 2016, 11:12 AM.
Details
Summary This patch adds two new spacing options. SpaceAfterTemplate inserts a space between the template keyword and the opening chevron. SpacesInBraces inserts spaces in short and empty brace blocks. Patch by cameron314.
Diff Detail Event TimelinemxbOctasic retitled this revision from to clang-format: `SpaceAfterTemplate` and `SpacesInBraces` options. mxbOctasic updated this object. Comment Actions Please read http://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options. The "template" option was discussed multiple times and I remain convinced that the costs outweigh the benefit here. For the other option:
Comment Actions This is already resolved with SpaceAfterTemplateKeyword and SpaceInEmptyBlock I'm going to commandeer and abandon this old version to try and clean up some of the legacy reviews MyDeveloperDay abandoned this revision.
Revision Contents
Diff 53591 include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/TokenAnnotator.cpp
lib/Format/UnwrappedLineFormatter.cpp
unittests/Format/FormatTest.cpp
|