This is an archive of the discontinued LLVM Phabricator instance.

[clang_format] Add fallback_style flag to clang-format-diff.py
ClosedPublic

Authored by haowei on Sep 9 2021, 3:21 PM.

Details

Summary

fallback-style is a frequently used flag in clang_format, however, it was not supported by clang-format-diff.py script. This change adds this flag.

Diff Detail

Event Timeline

haowei requested review of this revision.Sep 9 2021, 3:21 PM
haowei created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2021, 3:21 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
phosek accepted this revision.Sep 9 2021, 3:28 PM
phosek added a subscriber: phosek.

LGTM

clang/tools/clang-format/clang-format-diff.py
62

This is going to be the default name so I don't think you need this line at all.

This revision is now accepted and ready to land.Sep 9 2021, 3:28 PM
haowei updated this revision to Diff 371749.Sep 9 2021, 4:35 PM
haowei marked an inline comment as done.
haowei added inline comments.
clang/tools/clang-format/clang-format-diff.py
62

Removed in the latest patch. Locally tested.

This revision was landed with ongoing or failed builds.Sep 9 2021, 4:37 PM
This revision was automatically updated to reflect the committed changes.
haowei marked an inline comment as done.