This is an archive of the discontinued LLVM Phabricator instance.

Do not pick up by default the LLVM style if passing -format
ClosedPublic

Authored by v.g.vassilev on Jun 6 2017, 3:06 AM.

Details

Reviewers
bkramer
Summary

This adds a new flag -style which is passed to clang-apply-replacements and defaults to file meaning it would pick up the closest .clang-format file in tree.

Diff Detail

Event Timeline

v.g.vassilev created this revision.Jun 6 2017, 3:06 AM

Use string.

bkramer accepted this revision.Jun 6 2017, 5:29 AM

Looks good, but I'm wondering if we should also change the default in clang-apply-replacements itself.

This revision is now accepted and ready to land.Jun 6 2017, 5:29 AM
v.g.vassilev closed this revision.Jun 9 2017, 3:24 PM

Changing the default of clang-apply-replacements makes sense to me.

This one landed in r305125.