| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR centralizes switch-statement control-flow handling in the shared CFG library so that multiple language front-ends (starting with Java and C#) can reuse the same logic.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| shared/controlflow/codeql/controlflow/ControlFlowGraph.qll | Adds shared switch/case APIs and shared predicates for case ordering and body extraction. |
| java/ql/lib/semmle/code/java/ControlFlowGraph.qll | Removes Java-specific switch CFG helpers now provided by the shared library; implements new shared switch/case APIs. |
You can also share your feedback on Copilot code review. Take the survey.
Sorry, something went wrong.
There was a problem hiding this comment.
👍
Sorry, something went wrong.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Originally I implemented some of the complexity for switch statement control flow on the Java side, but C# needs the exact same thing (and it's plausible other languages will as well), so this PR moves those bits of code into the shared CFG library.
This PR only moves a few predicates and should be completely behaviour preserving.