The thing is that cppcheck does not know that __has_include() is not a normal function. So it does not manage to identify the argument, since it it not a valid argument to a normal function.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
the code
leads to
for cppcheck head.
Could you please check?
Thanks,
Martin
The thing is that cppcheck does not know that __has_include() is not a normal function. So it does not manage to identify the argument, since it it not a valid argument to a normal function.
oops it does not seem to handle
<somefile.h>
. there is handling of__has_include("somefile.h")
Last edit: Daniel Marjamäki 2022-06-14
Issue: https://github.com/danmar/simplecpp/issues/229