danmar/simplecpp

Multiline comment not handled properly

Opened this issue · 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];
        }
}