Home | History | Annotate | Download | only in clang

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
73 """Gets a command line for clang-tidy."""
84 # Get a temporary file. We immediately close the handle so clang-tidy can
102 # The fixes suggested by clang-tidy >= 4.0.0 are given under
114 # include/clang/Tooling/ReplacementsYaml.h, but the value
115 # is actually never used inside clang-apply-replacements,
126 """Checks if invoking supplied clang-apply-replacements binary works."""
130 print('Unable to run clang-apply-replacements. Is clang-apply-replacements '
137 """Calls clang-apply-fixes on a given directory."""
148 """Takes filenames out of queue and runs clang-tidy on them."""
161 parser = argparse.ArgumentParser(description='Runs clang-tidy over all files '
163 'clang-tidy and clang-apply-replacements in '
165 parser.add_argument('-clang-tidy-binary', metavar='PATH',
166 default='clang-tidy',
167 help='path to clang-tidy binary')
168 parser.add_argument('-clang-apply-replacements-binary', metavar='PATH',
169 default='clang-apply-replacements',
170 help='path to clang-apply-replacements binary')
172 help='checks filter, when not specified, use clang-tidy '
181 'which can be applied with clang-apply-replacements.')
202 help='Run clang-tidy in quiet mode')
221 print("Unable to run clang-tidy.", file=sys.stderr)