diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index bc94b5ca6..fe64d8e2d 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -146,7 +146,7 @@ unsigned int CppCheck::processFile(const std::string& filename, std::istream& fi continue; const std::string code = "#line " + - std::to_string(tok->location.line) + + MathLib::toString(tok->location.line) + '\"' + tok->location.file() + "\'\n" + directive;