patch: new warning on ODR-use of undefined inline functions

Nick Lewycky nlewycky at google.com
Wed Jan 30 22:19:18 PST 2013


This patch extends the tracking for used but undefined functions and
variables with internal linkage to also apply to inline functions.
Sema::UndefinedInternals is renamed Sema::UndefinedButUsed.

Fixes PR14993. Please review! Please pay particular attention to the
behaviour of the error under C99 and GNU89 modes.

Also, there's a comment that these should be errors. That turned out to not
be entirely trivial due to some codegen tests, so it's left out of this
patch.

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130130/c148a7f1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undefined-but-used-1.patch
Type: application/octet-stream
Size: 19184 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130130/c148a7f1/attachment.obj>


More information about the cfe-commits mailing list