Uh oh!
There was an error while loading. Please reload this page.
Fix broken simplecpp builds with libc++ - #8015
Conversation
firewave
commented
Dec 7, 2025
It would be helpful if the error which is fixed by this could be provided. Also I think this has nothing to do with libc++ but actually with a compiler which bypasses the standard version we are setting. I think the "proper" fix would be #7962. |
I am not able to reproduce it, so either your compiler is misbehaving or you have CMake misconfigured. |
pfultz2
commented
Dec 9, 2025
This is the error I see: Its calling the constructor that takes a pointer and size: but the constructor is not available when Since this is c++17, string_view is available but span is not, so this macro doesnt get defined.
I agree but since this fails to build completely, I think this can be merged now. |
pfultz2
commented
Dec 13, 2025
Can we merge this in? As I cannot build cppcheck locally on my mac. |
chrchr-github
commented
Dec 16, 2025
This looks related to https://trac.cppcheck.net/ticket/14267 |
firewave
commented
Dec 17, 2025
This has been "superseded" by #7962. |
pfultz2
commented
Dec 17, 2025
firewave
commented
Dec 17, 2025
Then the tests that C++17 actually builds also need to be moved here (and it doesn't with That other PR will be the final one before we release so it is currently my only priority. It is also ready now except for looking into your feedback. |
danmar
commented
Dec 18, 2025
this is BAD. :-( |
danmar
commented
Dec 18, 2025
I have a macincloud account. Unfortunately I don't have cmake and don't have permissions to install it. If you share the simplecpp.cpp compilation command from compile_commands.json and I can see if I can reproduce using that ? |



Cppcheck passes a pointer and size to
simplecpp:TokenList, so we need those APIs enabled even if there isstring_viewandspan.