Menu

Undefine defines from --project

Dzid
2024-06-07
2024-06-08
  • Dzid

    Dzid - 2024-06-07

    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:

    ./cppcheck/cppcheck 1.c -DA -UA
    Checking 1.c ...
    Checking 1.c: A=1...
    

    and order doesn't make a difference...

     

    Last edit: Dzid 2024-06-07
  • Dzid

    Dzid - 2024-06-08

    I ended up generating a separate compilation_commands.json.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.