diff options
Diffstat (limited to 'tools/clang/plugins/FindBadConstructsConsumer.cpp')
-rw-r--r-- | tools/clang/plugins/FindBadConstructsConsumer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang/plugins/FindBadConstructsConsumer.cpp b/tools/clang/plugins/FindBadConstructsConsumer.cpp index b7e1886..d1fc29d 100644 --- a/tools/clang/plugins/FindBadConstructsConsumer.cpp +++ b/tools/clang/plugins/FindBadConstructsConsumer.cpp @@ -230,6 +230,10 @@ void FindBadConstructsConsumer::CheckCtorDtorWeight( if (record->getIdentifier() == NULL) return; + // Skip records that derive from ignored base classes. + if (HasIgnoredBases(record)) + return; + // Count the number of templated base classes as a feature of whether the // destructor can be inlined. int templated_base_classes = 0; |