[PATCH] clang-format: options for spacing template argument lists
Christopher Olsen
chrisaolsen at gmail.com
Fri Oct 25 13:00:16 PDT 2013
I am evaluating clang-format and need control over spacing in template
argument lists to conform to our coding standards.
I've attached a patch that adds new flags to control this spacing.
Unittests are also included.
- SpacesInAngles - A<int> vs A< int >
- SpaceInEmptyAngles - template <> vs template < >
- SpaceAfterTemplateKeyword - template<typename T> vs template <typename T>
Note that LanguageStandard=Cpp03 overrides SpacesInAngles=false in the case
of '>>' as in A<A<int> >
Please let me know if there is anything I need to fix for submission.
Thanks!
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131025/fdeede60/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-format_template_spacing.patch
Type: application/octet-stream
Size: 6150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131025/fdeede60/attachment.obj>
More information about the cfe-commits
mailing list