For backward compatibility with CINT accept (for now?) a trailing close parenthesis in the list of arguments

git-svn-id: http://root.cern.ch/svn/root/trunk@48207 27541ba8-7e3a-0410-8455-c3a389f83636
This commit is contained in:
Philippe Canal 2013-01-06 05:53:26 +00:00
parent 101602fb42
commit 3eeaa60dce

View File

@ -724,7 +724,9 @@ namespace cling {
}
}
}
if (P.getCurToken().isNot(tok::eof)) {
// For backward compatibility with CINT accept (for now?) a trailing close
// parenthesis.
if (P.getCurToken().isNot(tok::eof) && P.getCurToken().isNot(tok::r_paren) ) {
// We did not consume all of the arg list, bad parse.
return TheDecl;
}