compileroptions.cmake: fixed workaround for Clang >= 14#4737
compileroptions.cmake: fixed workaround for Clang >= 14#4737firewave merged 1 commit intocppcheck-opensource:mainfrom
Conversation
|
This cannot be checked for and thus is never applied: There's also a version check before this option is being used so this should always be safe. CC @pfultz2 |
|
I have no opinion |
It wont always be safe. Some variants of clang report version 14 but do not support this flag. I ran into this very issue which is why I changed it. I think we can put quotes around it to check for multiple flags together with |
Which variants? I would assume that it is
I will give that a try. |
Its the clang provided by rocm. |
That seems to do the trick. |
|
That makes the check pass but it probably passes the two arguments as a single one because of the quotes which leads to the failure. I locally confirmed that Clang 14 and 15 support those options. |
|
Our helper simply doesn't work with this. Using a custom check will obviously work. |
|
On a side note in future versions of Clang the option can be specified without a space via |
|
@pfultz2 Does this work for you? Something off-topic. If you guys approve each others PRs I am comfortable to merge stuff even if I don't understand what it is doing. |
This fixes commit a586b9e.