Fixed #2138 (Add support for comments in suppression file)

This commit is contained in:
Cary R 2010-10-26 21:22:11 +02:00 committed by Daniel Marjamäki
parent a38b14d582
commit 59139b17cb
1 changed files with 4 additions and 0 deletions

View File

@ -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;