-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[clang-tidy] Check for -ignore-insert-conflict support before using it in apply_fixes in run-clang-tidy.py
#127066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
6c21029
65adc60
1382569
89e2b4d
86c47be
e8165bc
80b0b79
9251f16
b1b5286
2ad206f
f8ddede
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -198,9 +198,11 @@ def find_binary(arg: str, name: str, build_path: str) -> str: | |
| def apply_fixes( | ||
| args: argparse.Namespace, clang_apply_replacements_binary: str, tmpdir: str | ||
| ) -> None: | ||
| """Calls clang-apply-fixes on a given directory.""" | ||
| """Calls clang-apply-replacements on a given directory.""" | ||
| invocation = [clang_apply_replacements_binary] | ||
| invocation.append("-ignore-insert-conflict") | ||
|
|
||
| if args.ignore_insert_conflict: | ||
| invocation.append("-ignore-insert-conflict") | ||
| if args.format: | ||
| invocation.append("-format") | ||
| if args.style: | ||
|
|
@@ -446,6 +448,12 @@ async def main() -> None: | |
| action="store_true", | ||
| help="Allow empty enabled checks.", | ||
| ) | ||
| parser.add_argument( | ||
| "-ignore-insert-conflict", | ||
loumalouomega marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| action="store_true", | ||
| default=True, | ||
|
||
| help="Ignore insert conflict when applying fixes.", | ||
| ) | ||
| args = parser.parse_args() | ||
|
|
||
| db_path = "compile_commands.json" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.