Menu

unusedFunction false positive with gtest TEST_F

2023-07-21
2024-03-26
  • Samuel Poláček

    Hi,

    I get a lot of false positives from my UTs about unused functions / tests
    defined with TEST_F macro.
    I do use --library=googletest.

    cppcheck version: nightly

    Should I create suppressions or am I missing something?

     
  • Samuel Poláček

    Removed comment.

     

    Last edit: Samuel Poláček 2024-03-11
  • Andrea Cassioli

    Andrea Cassioli - 2023-11-10

    Hi Samuel, I have the same issue. How did you solve it?

     
    • Samuel Poláček

      We made some changes in the way we use Conan and we are facing the issue again. I have no clue how I solved it the first time and I have no clue how to solve it now.

       
  • Oliver Stöneberg

    Could you please provide a reduced sample which reproduces this?

     

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.