We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eafe421 commit 6210f2fCopy full SHA for 6210f2f
ament_clang_tidy/ament_clang_tidy/main.py
@@ -58,6 +58,8 @@ def main(argv=sys.argv[1:]):
58
parser.add_argument(
59
'--extra-arg',
60
type=str,
61
+ action='append',
62
+ dest='extra_arg',
63
default=None,
64
help='Additional argument to append to the compiler command line')
65
@@ -158,7 +160,8 @@ def invoke_clang_tidy(compilation_db_path):
158
160
if args.system_headers:
159
161
cmd.append('--system-headers')
162
if args.extra_arg:
- cmd.append('--extra-arg=' + args.extra_arg)
163
+ for arg in args.extra_arg:
164
+ cmd.append('--extra-arg=' + arg)
165
166
def is_gtest_source(file_name):
167
if file_name == 'gtest_main.cc' or file_name == 'gtest-all.cc' \
0 commit comments