[cfe-commits] [PATCH] Fix for CXXConstructExpr printing when implicit default argument is used.

Will Wilson will at indefiant.com
Sun Jan 27 13:10:04 PST 2013


Hi All,

Currently the s_foo variable below:

    struct DefaultArgClass
    {
      DefaultArgClass(int a = 1) {}
    };

    static DefaultArgClass s_foo;

Will be printed as:

    static DefaultArgClass s_foo();

This is due to the default argument not being correctly determined as
implicit. The fix and test case are attached for review (and commit if it
LGTY).

- Will.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130127/25af99a1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default_arg_constructexpr_fix.patch
Type: application/octet-stream
Size: 1507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130127/25af99a1/attachment.obj>


More information about the cfe-commits mailing list