Skip to content

Commit eb0925b

Browse files
committed
C#: There should at least be one manual summary for a non-source summarized callable.
1 parent 213e391 commit eb0925b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/ExternalFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,9 +554,9 @@ private predicate interpretNeutral(UnboundCallable c, string kind, string proven
554554
private class SummarizedCallableAdapter extends SummarizedCallable {
555555
SummarizedCallableAdapter() {
556556
exists(Provenance provenance | interpretSummary(this, _, _, _, provenance, _) |
557-
not this.hasBody()
557+
not this.fromSource()
558558
or
559-
this.hasBody() and provenance.isManual()
559+
this.fromSource() and provenance.isManual()
560560
)
561561
}
562562

0 commit comments

Comments
 (0)