[PATCH] Fixed UseNullptr causes compile error when replacing return(0);
Ariel Bernal
ariel.j.bernal at intel.com
Tue Mar 5 12:31:00 PST 2013
std: this problem only happens with implicit casts since the parentheses expression is in the implicit cast expression and therefore was replaced altogether and if a return statement happened to be right beside (with no space) then it was replaced by returnnullptr; . In case of explicit casts it will already have that space to start with so it shouldn't cause any problem. I'll add a test to corroborate that.
http://llvm-reviews.chandlerc.com/D496
More information about the cfe-commits
mailing list