Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Conversation

@max-schaefer
Copy link
Contributor

It's been a busy week in data flow, apparently. Evaluation (internal link) is uneventful; note that I reran a few performance outliers, which turned out not to be reproducible and hence were most likely wobbles.

Copy link
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.

I see there are some slight differences between our dataflow libraries and the ones in the codeql repo. Why is that?

@max-schaefer
Copy link
Contributor Author

I see there are some slight differences between our dataflow libraries and the ones in the codeql repo. Why is that?

Which differences do you mean?

@max-schaefer max-schaefer merged commit 534ab94 into github:master Jul 2, 2020
result = t // stub implementation
}
/** Gets the type of `n` used for type pruning. */
DataFlowType getNodeType(Node n) { result = n.getType() }
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right; those are the language-specific bits. Basically, any file that starts with import go is language-specific, and while it will look very similar to the corresponding files for other languages, there are many minor differences. In this case, C++ doesn't use the node type to restrict flow, so they have to use this trick to avoid getting warnings from the QL compiler.

Anders recently added an excellent overview of the data-flow libraries for language maintainers which you can consult for more details.

ceh pushed a commit to ceh-forks/codeql-go that referenced this pull request Jul 22, 2020
Mention Go cookbook queries in 1.24 change notes
@max-schaefer max-schaefer deleted the update-data-flow branch August 28, 2020 06:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants