Fixed #2138 (Add support for comments in suppression file)
This commit is contained in:
parent
a38b14d582
commit
59139b17cb
|
@ -64,6 +64,10 @@ std::string Settings::Suppressions::parseFile(std::istream &istr)
|
||||||
if (line.empty())
|
if (line.empty())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Skip comments
|
||||||
|
if (line.length() >= 2 && line[0] == '/' && line[1] == '/')
|
||||||
|
continue;
|
||||||
|
|
||||||
std::istringstream lineStream(line);
|
std::istringstream lineStream(line);
|
||||||
std::string id;
|
std::string id;
|
||||||
std::string file;
|
std::string file;
|
||||||
|
|
Loading…
Reference in New Issue