Menu

cppchek project file checks also #ifdef not defined

vix
2024-10-01
2024-12-10
  • vix

    vix - 2024-10-01

    I use a cppcheck project file from the GUI and I defined all the #ifdef I need.
    But when cppcheck analyzes source files it gives me warning seven for code included inside #ifdef that I haven't defined.
    The global parameter "scan all the #ifdef configurations" is disabled.
    Is this expected?

     
  • Daniel Marjamäki

    strange no it does not seem expected. it works for me.

    do you import a project file in the cppcheck project file? then cppcheck uses those defines also.

     
  • vix

    vix - 2024-12-10

    no, I created a cppcheck project file by scratch.

     

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.