This is an archive of the discontinued LLVM Phabricator instance.

clang-format: Add SpaceAfterTemplate
AbandonedPublic

Authored by poiru on Jun 29 2015, 9:00 AM.
Tokens
"The World Burns" token, awarded by opilarium.

Details

Reviewers
djasper
Summary

This is required for compliance with the Mozilla style guide.

Diff Detail

Event Timeline

poiru updated this revision to Diff 28680.Jun 29 2015, 9:00 AM
poiru retitled this revision from to clang-format: Add SpaceAfterTemplate.
poiru updated this object.
poiru added a reviewer: djasper.
poiru added a subscriber: Unknown Object (MLST).
djasper edited edge metadata.Jun 29 2015, 9:19 AM

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.

poiru abandoned this revision.Jun 29 2015, 11:48 AM

Where does it say that?

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.

opilarium added a subscriber: opilarium.

It's the huge deal for my company too. It would be nice if you reconsider.

To be clear, this is blocking Mozilla to use much more clang-format

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.

Thanks. I am rebasing and updating the patch.
I don't know if poiru is still around.

Thanks. I am rebasing and updating the patch.

Waiting for you.