simplecpp icon indicating copy to clipboard operation
simplecpp copied to clipboard

Multiline comment not handled properly

Open chrchr-github opened this issue 1 year ago • 0 comments

https://trac.cppcheck.net/ticket/12379

#include <string>
#include <vector>
#include <iostream>

void f()
{
        std::size_t i;
        const std::vector<std::string> v{"4", "2"};
        // Some comment\
        for(i = 0U; i < v.size(); ++i)
        {
                std::cout << v[i];
        }
}

chrchr-github avatar Feb 13 '24 11:02 chrchr-github