[PATCH] Suppress 'unused function' warnings on specialized template functions

Halfdan Ingvarsson halfdan at sidefx.com
Tue Apr 16 07:22:00 PDT 2013

On 13-04-16 09:18 AM, Rafael Espíndola wrote:
> * Try to stay under 80 columns.
Yipes! Fixed.
> * Avoid trailing white space.
> * If possible, include the test into an existing generic test. Can you
> add these to test/SemaCXX/warn-unused-filescoped.cpp?
> And specific to this patch, I think FD->getCanonicalDecl will give you
> the right answer for all kinds of FunctionDecl, no?
Ah. Brilliant. I've changed the code so that it always gets the storage 
class from the canonical declaration, instead of having a separate check 
for explicit specialization.


- ½

-------------- next part --------------
A non-text attachment was scrubbed...
Name: unused_tpl_spec_warn.patch
Type: text/x-patch
Size: 1597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130416/a1d7303d/attachment.bin>

More information about the cfe-commits mailing list