I am running an embedded C
project based on a tricore-gcc
compiler.
I made a compile_commands.json
file that works well.
However, there are some arguments that clang-tidy
cannot recognize.
For example I get the following
error: unknown argument: '-fstrict-volatile-bitfields' [clang-diagnostic-error]
when I run clang-tidy
.
This is not a surprise of course, since -fstrict-volatile-bitfields
is an option for gcc
but not for clang-tidy
.
However, I would like to suppress output messages due to unknown compiler options.
I tried to append --extra-arg=-Wno-unknown-warning-option
as suggested here but the problem persists.