clang fixes

This commit is contained in:
Matej Sekoranja
2014-08-19 20:58:12 +02:00
parent 37f6dff065
commit 16fb3f0339
2 changed files with 102 additions and 96 deletions

View File

@@ -352,15 +352,21 @@ public:
if(chr==']') numBracket--;
}
if(numParan!=0) {
message = "mismatched () " + numParan;
std::ostringstream msg("mismatched () ");
msg << numParan;
message = msg.str();
return PVStructurePtr();
}
if(numBrace!=0) {
message = "mismatched {} " + numBrace;
std::ostringstream msg("mismatched {} ");
msg << numBrace;
message = msg.str();
return PVStructurePtr();
}
if(numBracket!=0) {
message = "mismatched [] " + numBracket;
std::ostringstream msg("mismatched [] ");
msg << numBracket;
message = msg.str();
return PVStructurePtr();
}
vector<Node> top;