Fixed #2032 (inline suppressions fail with comment on the same line as function)

This commit is contained in:
Daniel Marjamäki 2010-09-15 21:10:54 +02:00
parent de3b9f610a
commit ebf13acfbd
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ std::string Preprocessor::removeComments(const std::string &str, const std::stri
// We have finished a line that didn't contain any comment
// (the '\n' is swallowed when a // comment is detected)
if (ch == '\n' && !suppressionIDs.empty())
if ((ch == '\n' || str.compare(i,2,"//")==0) && !suppressionIDs.empty())
{
// Add the suppressions.
for (size_t j(0); j < suppressionIDs.size(); ++j)