H A D | run-clang-format.py | 2 """A wrapper script around clang-format, suitable for linting multiple files 4 This is an alternative API for the clang-format command line. 6 A diff output is produced and a sensible exit code is returned. 8 NOTE: pulled from https://github.com/Sarcasm/run-clang-format, which is 39 DIFF = 1 variable in ExitStatus 56 # by modifying it in-place, 80 fromfile='{}\t(original)'.format(file), 81 tofile='{}\t(reformatted)'.format(file), 105 raise UnexpectedError('{}: {}: {}'.format(file, e.__class__.__name__, 111 with io.open(file, 'r', encoding='utf-8') as f: [all …]
|