[PATCH] D25019: [clang-tidy] Make add_new_check.py Python 3 compatible

2016-10-05 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. > add_new_check.py:58 > +f.write(b'//===--- ') > +f.write((os.path.basename(filename)).encode()) > +f.write(b' - clang-tidy') Too many parentheses. > add_new_check

[PATCH] D25019: [clang-tidy] Make add_new_check.py Python 3 compatible

2016-09-28 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, ioeric, bkramer. omtcyfz added subscribers: cfe-commits, aaron.ballman. `add_new_check.py` didn't support Python 3.X for some reason, even though it used `print` in Python 3.X-compatible way. With just a few tweaks `add_new_check.py