This patch prevents getCanonicalDecl returning nullptr in case it finds
a canonical TemplateDeclaration with no attached TemplatedDecl.
Found by running the indexer over a version of the standard library deep inside
a template metaprogramming mess.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 8290 Build 8290: arc lint + arc unit
Event Timeline
Comment Actions
I've figured out a test case for this:
template <template <typename> class A> class B { typedef A<int> A_int; };
The real-world problem comes from ptr_traits.h.
Comment Actions
Take a look at the tests in clang/test/Index/Core. You should be able to write a test which uses c-index-test to dump the symbols in this source.