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
clang-format_template_spacing.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
