Lines Matching full:clang
3 #===- run-clang-tidy.py - Parallel clang-tidy runner ---------*- python -*--===#
11 # FIXME: Integrate with clang-tidy-diff.py
14 Parallel clang-tidy runner
17 Runs clang-tidy over all files in a compilation database. Requires clang-tidy
18 and clang-apply-replacements in $PATH.
21 - Run clang-tidy on all files in the current working directory with a default
23 run-clang-tidy.py $PWD
26 run-clang-tidy.py -fix -checks=-*,llvm-header-guard
28 - Fix all header guards included from clang-tidy and header guards
29 for clang-tidy headers.
30 run-clang-tidy.py -fix -checks=-*,llvm-header-guard extra/clang-tidy \
31 -header-filter=extra/clang-tidy
34 http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html
65 """Gets a command line for clang-tidy."""
76 # Get a temporary file. We immediately close the handle so clang-tidy can
93 """Checks if invoking supplied clang-apply-replacements binary works."""
97 print('Unable to run clang-apply-replacements. Is clang-apply-replacements '
104 """Calls clang-apply-fixes on a given directory. Deletes the dir when done."""
115 """Takes filenames out of queue and runs clang-tidy on them."""
128 parser = argparse.ArgumentParser(description='Runs clang-tidy over all files '
130 'clang-tidy and clang-apply-replacements in '
132 parser.add_argument('-clang-tidy-binary', metavar='PATH',
133 default='clang-tidy',
134 help='path to clang-tidy binary')
135 parser.add_argument('-clang-apply-replacements-binary', metavar='PATH',
136 default='clang-apply-replacements',
137 help='path to clang-apply-replacements binary')
139 help='checks filter, when not specified, use clang-tidy '
166 help='Run clang-tidy in quiet mode')
185 print("Unable to run clang-tidy.", file=sys.stderr)