r310158 - [ODRHash] Treat some non-templated classes as templated.

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 7 13:46:52 PDT 2017


On Fri, Aug 4, 2017 at 5:54 PM, Richard Trieu via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: rtrieu
> Date: Fri Aug  4 17:54:19 2017
> New Revision: 310158
>
> URL: http://llvm.org/viewvc/llvm-project?rev=310158&view=rev
> Log:
> [ODRHash] Treat some non-templated classes as templated.
>
> When using nested classes, if the inner class is not templated, but the outer
> class is templated, the inner class will not be templated, but may have some
> traits as if it were.  This is particularly evident if the inner class
> refers to the outer class in some fashion.  Treat any class that is in the
> context of a templated class as also a templated class.
>
> Modified:
>     cfe/trunk/lib/AST/ODRHash.cpp

Merged to 5.0 in r310302.


More information about the cfe-commits mailing list