Calls clang-apply-fixes on a given directory.
(args, clang_apply_replacements_binary, tmpdir)
| 208 | |
| 209 | |
| 210 | def apply_fixes(args, clang_apply_replacements_binary, tmpdir): |
| 211 | """Calls clang-apply-fixes on a given directory.""" |
| 212 | invocation = [clang_apply_replacements_binary] |
| 213 | invocation.append('-ignore-insert-conflict') |
| 214 | if args.format: |
| 215 | invocation.append('-format') |
| 216 | if args.style: |
| 217 | invocation.append('-style=' + args.style) |
| 218 | invocation.append(tmpdir) |
| 219 | subprocess.call(invocation) |
| 220 | |
| 221 | |
| 222 | def run_tidy(args, clang_tidy_binary, tmpdir, build_path, queue, lock, |