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:
parent
101602fb42
commit
3eeaa60dce
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user