[PATCH] Fixing source range for functional casts and unresolved ctor calls.
Enea Zaffanella
zaffanella at cs.unipr.it
Fri Jul 5 00:45:51 PDT 2013
Please find attached a patch (including testcase) for fixing the
computation of source ranges for a couple of AST nodes.
Prior to C++11, CXXFunctionalCastExpr and CXXUnresolvedConstructExpr
nodes were assuming a valid RParenLoc; after C++11, the parentheses are
no longer mandatory, as in the following examples:
int foo() { return int{}; }
typedef std::initializer_list<int> IL;
template<class U> IL foo(U x) { return IL{x}; }
OK to commit?
Enea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: funcast-unresctor-ranges.patch
Type: text/x-diff
Size: 2769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130705/398d4cc7/attachment.patch>
More information about the cfe-commits
mailing list