There was an error while loading. Please reload this page.
--extra-arg=
1 parent 7885064 commit a9c8adaCopy full SHA for a9c8ada
1 file changed
cpp_linter/clang_tools/clang_tidy.py
@@ -248,7 +248,8 @@ def run_clang_tidy(
248
extra_args = extra_args[0].split()
249
for extra_arg in extra_args:
250
arg = extra_arg.strip('"')
251
- cmds.append(f"--extra-arg={arg}")
+ if arg: # avoid adding empty arg values
252
+ cmds.append(f"--extra-arg={arg}")
253
if tidy_review:
254
# clang-tidy overwrites the file contents when applying fixes.
255
# create a cache of original contents
0 commit comments