This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Add option SpaceAfterCStyleCast
ClosedPublic

Authored by curdeius on Sep 2 2014, 4:40 AM.

Details

Reviewers
djasper
Summary

Added an option to clang-format 'SpaceAfterCStyleCast' that permits to force a space after closing parenthesis of a C-style cast. Defaults to false to preserve old behaviour.

Fixes LLVM bug 19982.

Before:

(int)i;

After:

(int) i;

Diff Detail

Event Timeline

curdeius updated this revision to Diff 13159.Sep 2 2014, 4:40 AM
curdeius retitled this revision from to [clang-format] Add option SpaceAfterCStyleCast.
curdeius updated this object.
curdeius edited the test plan for this revision. (Show Details)
curdeius added a reviewer: djasper.
curdeius added a subscriber: curdeius.
curdeius updated this object.Sep 2 2014, 4:42 AM
curdeius added a subscriber: Unknown Object (MLST).
curdeius updated this revision to Diff 13160.Sep 2 2014, 4:47 AM

[clang-format] Add documentation for option SpaceAfterCStyleCast.

djasper accepted this revision.Sep 2 2014, 6:59 AM
djasper edited edge metadata.

Looks good, thank you.

This revision is now accepted and ready to land.Sep 2 2014, 6:59 AM

Please commit. I have no write access.

djasper closed this revision.Sep 3 2014, 12:48 AM

Submitted.