I have noticed that the CXXConstructExpr is not always created with the correct parenthesis range. For example:
struct X { X(int x) {} };
void f() {
X value(7); // CXXConstructExpr has correct range (5, 12)
X(7); // CXXConstructExpr has incorrect range (3, 5), does not include
")"
}
Although I am not 100% sure this is a bug and not a feature, the attached
patch fixes it. Please take a look.
Cheers,
Daniel
cxxconstructexpr.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
