This is an archive of the discontinued LLVM Phabricator instance.

Introduce DisableFormat that prevents formatting
ClosedPublic

Authored by ono on May 22 2014, 7:30 AM.

Details

Reviewers
djasper
Summary

And "none" pseudo-style indicating that formatting should be not applied.

(1) Using .clang-format with "DisableFormat: true" effectively prevents
formatting for all files within the folder containing such .clang-format file.

(2) Using -fallback-style=none together with -style=file prevents formatting
when .clang-format is not found, which can be used in on-save callback.

Diff Detail

Event Timeline

ono updated this revision to Diff 9698.May 22 2014, 7:30 AM
ono retitled this revision from to Introduce DisableFormat that prevents formatting.
ono updated this object.
ono edited the test plan for this revision. (Show Details)
ono added a reviewer: djasper.
ono added subscribers: ono, klimek, Unknown Object (MLST).
djasper accepted this revision.May 22 2014, 7:34 AM
djasper edited edge metadata.

I like this :-).

This revision is now accepted and ready to land.May 22 2014, 7:34 AM
ono added a comment.May 22 2014, 7:44 AM

What comes next? ;) You do "arc land" on your side?

Regards,

Depends, do you have commit access? If not, I can submit it for you ..

ono added a comment.May 22 2014, 7:52 AM

Depends, do you have commit access? If not, I can submit it for you ..

No I don't /blushes/. Maybe someday.

I presume with Arcanist/Phabricator you can take the commit together with author and original commit msg? Right?

Cheers,

djasper closed this revision.May 22 2014, 8:21 AM

Submitted as r209446 (and a basic test in r209447). Thanks for working on this!