Menu

cppcheck 1.90 skip files if i can whole directory

2019-12-24
2020-05-10
  • Volker Dirr

    Volker Dirr - 2019-12-24

    Hallo,

    I have a strange problem with cppcheck 1.90. If i scan a whole
    directory, then a few files were skiped (not scanned).
    Sometimes it even locks the interface, so after all files are scanned,
    the interface is still gray and i can't select most of the items.
    If i try to scan the file alone, it is also skiped.
    But if i copy the file into an other directory and scan it, then
    cppcheck print a lot of warnings about that file.

    I can reproduce that bug with Windows and Linux.
    Sadly i wasn't able to do a minimal example.

    You can reproduce the bug if you scan this source:
    https://www.timetabling.de/download/old/fet-5.42.0.zip
    You will see that file generate.cpp will be skiped if you scan the whole directory, but cppcheck find a lot of stuff if you scan only that file in an other directory. (see /src/engine/ )

    Sadly i can't write a bug report in the tracer. I have a login and a
    passwort, but i can't write, since i need to confirm my email again. But
    i don't get a token to my email, even if i press resent. I also tried to
    change my mail, but i also didn't got a token to my other mail. Now i
    even can't enter my old mail, since it is "in use" and i am rejected by
    the bug tracer.

    Merry X-mas
    Volker

     

    Last edit: Volker Dirr 2019-12-24
  • Daniel Marjamäki

    Sadly i can't write a bug report in the tracer. I have a login and a passwort, but i can't write, since i need to confirm my email again.

    Please send me a htpasswd hash and I'll get your account working!

    The email notifications does not work yet.

     
  • Volker Dirr

    Volker Dirr - 2019-12-28

    Hi,

    i have done a minimum example now.

    You can reproduce the bug by this:

    Download minimum example:
    https://timetabling.de/download/old/fet-source-liviu-minimum.zip

    unzip it (just 2 small files)

    open cppcheck-gui 1.90 (linux or windows)
    cppcheck-gui → analyse → directory → select the folder

    you will see only a warning about rules.h, but not about the other file.

    Now go to rules.h line 29. Comment or delete that line and scan again.
    Now you will see bugs about generate.cpp (but not anymore about rules.h)

    Best Regards
    Volker Dirr

     
  • Volker Dirr

    Volker Dirr - 2020-05-10

    Sadly this bug is still present in cppcheck 2.0.
    that are 2 totally independent files, but only one error is displayed by cppcheck.
    if i comment that wrong source line cppcheck displays an other error in an other file.
    that is strange. i don't understand why cppcheck skips warnings if there are other warnings in other files.

     

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.