[clang-tidy] Ignore incomplete types when determining whether they are expensive...
authorFelix Berger <flx@google.com>
Fri, 4 Nov 2016 20:29:22 +0000 (20:29 +0000)
committerFelix Berger <flx@google.com>
Fri, 4 Nov 2016 20:29:22 +0000 (20:29 +0000)
commit393803328252836581bc2a2fd0c01a577fa986b8
treeec10c4d6439fafc8f7f1b8019c41ac1320af2a67
parent0f901c7ec4a39f07fd6b942839b669506e3247fb
[clang-tidy] Ignore incomplete types when determining whether they are expensive to copy

Summary: IsExpensiveToCopy can return false positives for incomplete types, so ignore them.

All existing ClangTidy tests that depend on this function still pass as the types are complete.

Reviewers: alexfh, aaron.ballman

Subscribers: cfe-commits

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

llvm-svn: 286008
clang-tools-extra/clang-tidy/utils/TypeTraits.cpp
clang-tools-extra/test/clang-tidy/performance-unnecessary-value-param.cpp