[patch][pr17624] Consider hidden decls for isUsed checks

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sat Oct 19 15:51:49 PDT 2013


Hi Richard,

The attached patch fixes pr17624, but I worry there might be more bugs
like this. Some analysis must ignore hidden decls so that, for
example, we accept

void f4() {
  void g4(int a, int b = 7);
  {
    void g4(int a, int b = 5);
  }
  void g4(int a = 5, int b);
}

but is isUsed really the only check that has to consider the true most
recent decl?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 1537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131019/63c05c75/attachment.obj>


More information about the cfe-commits mailing list