-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C#/Java: Re-factor the isSupported
predicate.
#12261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C#/Java: Re-factor the isSupported
predicate.
#12261
Conversation
b709709
to
86888b8
Compare
DCA looks good, except there seems to be an issue with a C# project that doesn't build anymore (this is also an issue in another DCA run). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from one minor comment.
/** Holds if this API is a known neutral. */ | ||
pragma[nomagic] | ||
predicate isNeutral() { this instanceof FlowSummaryImpl::Public::NeutralCallable } | ||
|
||
/** Holds if this API is supported by existing CodeQL libraries, that is, it is either a recognized source or sink or has a flow summary. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this comment be updated to reflect the additional condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, definitely! Thank you!
It turns out that all uses of
isSupported
also includes logic to cater for neutrals. In this PR we put this into theisSupported
predicate itself.Thank you @starcke!