You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue where I'm getting an irrelevant warning on my source code that happens when a define is not set.
This is a check to prevent inclusion of certain headers without the define.
When compiling, the correct cpp files have the define but clang-tidy will not have them when analyzing the header itself.
The solution to this is adding --extra-arg=-DMY_DEFINE to the command line.
In clang-tidy 17, you can set this in the config with ExtraArgs but I'm currently on 15.
Either way, I don't see such an option in clang-tidy-review
Note that multiple --extra-arg can be set one after the other.
The text was updated successfully, but these errors were encountered:
I'm running into an issue where I'm getting an irrelevant warning on my source code that happens when a define is not set.
This is a check to prevent inclusion of certain headers without the define.
When compiling, the correct cpp files have the define but clang-tidy will not have them when analyzing the header itself.
The solution to this is adding
--extra-arg=-DMY_DEFINE
to the command line.In clang-tidy 17, you can set this in the config with
ExtraArgs
but I'm currently on 15.Either way, I don't see such an option in clang-tidy-review
Note that multiple
--extra-arg
can be set one after the other.The text was updated successfully, but these errors were encountered: