Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Lines | def main(): | ||||
else: | else: | ||||
# Find our database | # Find our database | ||||
build_path = find_compilation_database(db_path) | build_path = find_compilation_database(db_path) | ||||
clang_tidy_binary = find_binary(args.clang_tidy_binary, "clang-tidy", | clang_tidy_binary = find_binary(args.clang_tidy_binary, "clang-tidy", | ||||
build_path) | build_path) | ||||
tmpdir = None | tmpdir = None | ||||
if args.fix or (yaml and args.export_fixes): | if args.fix: | ||||
clang_apply_replacements_binary = find_binary( | clang_apply_replacements_binary = find_binary( | ||||
args.clang_apply_replacements_binary, "clang-apply-replacements", | args.clang_apply_replacements_binary, "clang-apply-replacements", | ||||
build_path) | build_path) | ||||
tmpdir = tempfile.mkdtemp() | tmpdir = tempfile.mkdtemp() | ||||
try: | try: | ||||
invocation = get_tidy_invocation("", clang_tidy_binary, args.checks, | invocation = get_tidy_invocation("", clang_tidy_binary, args.checks, | ||||
None, build_path, args.header_filter, | None, build_path, args.header_filter, | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |