Skip to content

Dataflow: Make use of defaults for language-specific hooks.#14299

Merged
aschackmull merged 4 commits intogithub:mainfrom
aschackmull:dataflow/more-defaults
Sep 25, 2023
Merged

Dataflow: Make use of defaults for language-specific hooks.#14299
aschackmull merged 4 commits intogithub:mainfrom
aschackmull:dataflow/more-defaults

Conversation

@aschackmull
Copy link
Copy Markdown
Contributor

With default predicates we can get rid of some dummy hook implementations.

@aschackmull aschackmull force-pushed the dataflow/more-defaults branch from 74d7787 to ae278fc Compare September 22, 2023 13:06
owen-mc
owen-mc previously approved these changes Sep 22, 2023
Copy link
Copy Markdown
Contributor

@owen-mc owen-mc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 Go

geoffw0
geoffw0 previously approved these changes Sep 22, 2023
Copy link
Copy Markdown
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swift 👍

default int getAdditionalFlowIntoCallNodeTerm(ArgumentNode arg, ParameterNode p) { none() }

predicate golangSpecificParamArgFilter(DataFlowCall call, ParameterNode p, ArgumentNode arg);
default predicate golangSpecificParamArgFilter(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this need a bindingset?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, looks like it does. Will fix.

@aschackmull aschackmull dismissed stale reviews from geoffw0 and owen-mc via aa2c7a7 September 25, 2023 06:55
@aschackmull aschackmull merged commit 06cb277 into github:main Sep 25, 2023
@aschackmull aschackmull deleted the dataflow/more-defaults branch September 25, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants