Menu

"This file is not analyzed" in sln file execution

2020-09-23
2020-09-25
  • shotaro hiroi

    shotaro hiroi - 2020-09-23

    Hello.
    I have a problem and would appreciate your help.

    When cppcheck is executed from CLI for sln file of visual studio, some files are "This file is not analyzed".
    Why can't I parse it even though I have specified a sln file?
    I am running with the --force option.

    Check-config and execution are done like this.

    cppcheck --check-config  --enable=all -j 6 --force --verbose --platform=win64 --library=std --library=windows --library=opengl --library=zlib --library=mfc --suppress=missingIncludeSystem --suppress=unmatchedSuppression --xml-version=2 --project=xxx.sln --project-configuration="Release|x64" 2> check_conf.xml
    
    cppcheck                 --enable=all -j 6 --force --verbose --platform=win64 --library=std --library=windows --library=opengl --library=zlib --library=mfc --suppress=missingIncludeSystem --suppress=unmatchedSuppression --xml-version=2 --project=xxx.sln --project-configuration="Release|x64" 2> result.xml
    
     

    Last edit: shotaro hiroi 2020-09-23
  • Daniel Marjamäki

    it seems strange. that should not happen. maybe we don't add some define that is needed. it would be very useful with a reduced example code.

     
  • shotaro hiroi

    shotaro hiroi - 2020-09-25

    First, I solved the "preprocessor Error Directive" that occurred in the header check.
    After that, "This file is not analyzed". Does not occur with -force attached.

    However, the cause of "preprocessorErrorDirective" seems to be a false detection of "#error", but for the time being, the processing itself has no meaning other than displaying a character string, so I commented it out.

     

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.