This is an archive of the discontinued LLVM Phabricator instance.

Port tools/clang-format/git-clang-format to work Python beyond 2.7
AcceptedPublic

Authored by abergmeier-dsfishlabs on Aug 17 2016, 2:56 AM.

Details

Reviewers
djasper
vsk
Summary

Since Python3 may deliberately not be available on Linux Systems (to prevent people from writing non-futureproof code), git-clang-format should not only work with Python2.7. This patch adds support for Python3.

Diff Detail

Repository
rL LLVM

Event Timeline

abergmeier-dsfishlabs retitled this revision from to Port tools/clang-format/git-clang-format to work Python beyond 2.7.
abergmeier-dsfishlabs updated this object.
abergmeier-dsfishlabs added a reviewer: djasper.
abergmeier-dsfishlabs set the repository for this revision to rL LLVM.
abergmeier-dsfishlabs changed the edit policy from "All Users" to "abergmeier-dsfishlabs (Andreas Bergmeier)".
abergmeier-dsfishlabs added a subscriber: cfe-commits.
vsk added a subscriber: vsk.Aug 17 2016, 11:29 PM
vsk added inline comments.
tools/clang-format/git-clang-format
303

Why is this change needed (i.e: is there a functional difference between a list vs. a dict_keys here)?

abergmeier-dsfishlabs removed rL LLVM as the repository for this revision.

Removed unnecessary list conversion.

abergmeier-dsfishlabs set the repository for this revision to rL LLVM.

Proper patch of last version (hopefully)

vsk accepted this revision.Aug 18 2016, 11:10 AM
vsk added a reviewer: vsk.

This lgtm. I haven't touched clang-format before, so it would be good to double-check with the code owner before committing.

This revision is now accepted and ready to land.Aug 18 2016, 11:10 AM
djasper accepted this revision.Aug 18 2016, 11:16 AM
djasper edited edge metadata.

Looks good.

Looks like patch was not committed.

shafik added a subscriber: shafik.Sep 21 2023, 8:28 AM

Should we close this?

Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2023, 8:28 AM