[PATCH] D48098: clang-format-diff: Switch to python3 by default, support python 2.7

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 14 02:07:28 PDT 2018


krasimir added inline comments.


================
Comment at: tools/clang-format/clang-format-diff.py:1
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
----------------
lebedev.ri wrote:
> Why do you need to *switch* the default?
> What's wrong with [at least starting with] just making sure it works with both python 2 and 3?
+1: I'm not an expert, but IMO python2.7 is more prevalent.


https://reviews.llvm.org/D48098





More information about the cfe-commits mailing list