<div dir="ltr"><div>I am evaluating clang-format and need control over spacing in template argument lists to conform to our coding standards.<br></div><div><br></div><div>I've attached a patch that adds new flags to control this spacing.  Unittests are also included.</div>
<div><br></div><div>- SpacesInAngles - A<int> vs A< int ></div><div>- SpaceInEmptyAngles - template <> vs template < ></div><div>- SpaceAfterTemplateKeyword - template<typename T> vs template <typename T></div>
<div><br></div><div>Note that LanguageStandard=Cpp03 overrides SpacesInAngles=false in the case of '>>' as in A<A<int> ></div><div><br></div><div>Please let me know if there is anything I need to fix for submission.</div>
<div><br></div><div>Thanks!</div><div>Chris</div><div><br></div></div>