Open astro-stan opened 7 months ago
The ExtraArgs: sequence is ignored when specified in the clang-tidy config.
ExtraArgs:
For example:
# .clang-tidy config ... ExtraArgs: - '-Wno-unknown-warning-option' # same result without single quotes
Results in:
error: no such file or directory: '-Wno-unknown-warning-option' [clang-diagnostic-error]
However, when specified on the command line (--extra-arg -Wno-unknown-warning-option) it works fine.
--extra-arg -Wno-unknown-warning-option
According to the docs, ExtraArgs in the config file is the same as --extra-arg on the command line.
ExtraArgs
--extra-arg
This may help: https://github.com/llvm/llvm-project/pull/66553
Oh so it should work with ExtraArgsBefore? Thanks.
ExtraArgsBefore
Also good to know the other way is close to getting fixed!
The
ExtraArgs:
sequence is ignored when specified in the clang-tidy config.For example:
Results in:
However, when specified on the command line (
--extra-arg -Wno-unknown-warning-option
) it works fine.According to the docs,
ExtraArgs
in the config file is the same as--extra-arg
on the command line.