C#: Disregard destructors in model generation.

This commit is contained in:
Michael Nebel
2022-07-21 08:58:57 +02:00
parent 0cf4e64655
commit 87c7dd90c0
2 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,8 @@ private predicate isRelevantForModels(CS::Callable api) {
api.getDeclaringType().getNamespace().getQualifiedName() != "" and
not api instanceof CS::ConversionOperator and
not api instanceof Util::MainMethod and
not isHigherOrder(api)
not isHigherOrder(api) and
not api instanceof CS::Destructor
}
/**

View File

@@ -6,6 +6,9 @@ namespace Summaries;
public class BasicFlow
{
// No flow summary and no negative summary either.
~BasicFlow() { }
private string tainted;
public BasicFlow ReturnThis(object input)