Menu

False positive knownEmptyContainer

2022-01-17
2022-01-17
  • Anton Davidenko

    Anton Davidenko - 2022-01-17

    Example:

        std::vector<int> v;
        auto& rv = v;
        rv.push_back(42);
        for (auto i : v)
        {
            ...
        }
    
     
  • CHR

    CHR - 2022-01-17

    Thanks for reporting, I have created a ticket here: https://trac.cppcheck.net/ticket/10738

     

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.