]> granicus.if.org Git - clang/commit
[analyzer] Fix CloneDetector crash on calling methods of class templates.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Aug 2016 16:42:00 +0000 (16:42 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 23 Aug 2016 16:42:00 +0000 (16:42 +0000)
commitd0e69cf6b21f1ecc3e2a957d9d53c271c7b8b897
treeafe13da446538ea9d1dbd457da3a27f3b3bf6f3e
parent36fa4bbf3fd298a32efe4d9f921b5308ff68eac6
[analyzer] Fix CloneDetector crash on calling methods of class templates.

If a call expression represents a method call of a class template,
and the method itself isn't templated, then the method may be considered
to be a template instantiation without template specialization arguments.

No longer crash when we could not find template specialization arguments.

Patch by Raphael Isemann!

Differential Revision: https://reviews.llvm.org/D23780

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279529 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CloneDetection.cpp
test/Analysis/copypaste/call.cpp