[PATCH] Suppress 'unused function' warnings on specialized template functions
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.
> * 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...
Size: 1597 bytes
Desc: not available
More information about the cfe-commits