[cfe-dev] Bug in DoStmt?
Olaf Krzikalla
Olaf.Krzikalla at tu-dresden.de
Thu Jun 11 02:25:32 PDT 2009
Olaf Krzikalla schrieb:
> class DoStmt
> {
> //...
> virtual SourceRange getSourceRange() const {
> return SourceRange(DoLoc, SubExprs[BODY]->getLocEnd());
>
> IMHO this should be:
> return SourceRange(DoLoc, SubExprs[COND]->getLocEnd());
> }
> //...
> };
This still doesn't fix it as it doesn't include the final ");" in
do BODY while(COND);
Ideas?
Best
Olaf Krzikalla
More information about the cfe-dev
mailing list