This is required for compliance with the Mozilla style guide.
Details
Diff Detail
Event Timeline
Where does it say that?
Specifically, this has been discussed for other coding styles as well as the C++ standard itself and the fundamental conclusion is that it is not worth thinking about or adding an option for.
New Mozilla code generally uses the unspaced version. It is not in the actual style guide because both versions are used inconsistently at the moment.
Specifically, this has been discussed for other coding styles as well as the C++ standard itself and the fundamental conclusion is that it is not worth thinking about or adding an option for.
We want to start using Clang-Format on all Mozilla/Gecko code, but there are a few issues like this that prevent us from doing so. This issue in particular will probably not be a huge deal, so I'll abandon this based on the comment above.
Can we just accept this merge request? It's backward compatible and helps Mozilla to adapt clang-format.
I still believe it's wrong to care about this in particular, but I also don't want to hold clang-format hostage for my own beliefs. Obviously, enough people care and the costs are limited.
include/clang/Format/Format.h | ||
---|---|---|
356 | Call this SpaceAfterTemplateKeyword. |
Call this SpaceAfterTemplateKeyword.