[ODRHash] Treat some non-templated classes as templated.
authorRichard Trieu <rtrieu@google.com>
Sat, 5 Aug 2017 00:54:19 +0000 (00:54 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 5 Aug 2017 00:54:19 +0000 (00:54 +0000)
commit5fb82efebf66400f40f5e4745f64537ee7a66c74
tree4eda2675556641ba5c2463e7f8dd96637e4e0155
parentc099010ed7f7e25e743d3e8c5a081f063b570f8e
[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.

llvm-svn: 310158
clang/lib/AST/ODRHash.cpp