How to undefine names defined via --project=compilation_commands.json?
--project=compilation_commands.json
Despite adding e.g.-U A, the configuration is still being checked.
-U A
I think this is related to simpler case where -U A doesn't seem to do anything:
./cppcheck/cppcheck 1.c -DA -UA Checking 1.c ... Checking 1.c: A=1...
and order doesn't make a difference...
I ended up generating a separate compilation_commands.json.
compilation_commands.json
Log in to post a comment.
How to undefine names defined via
--project=compilation_commands.json
?Despite adding e.g.
-U A
, the configuration is still being checked.I think this is related to simpler case where
-U A
doesn't seem to do anything:and order doesn't make a difference...
Last edit: Dzid 2024-06-07
I ended up generating a separate
compilation_commands.json
.