Fraunhofer-AISEC / cpg

A library to extract Code Property Graphs from C/C++, Java, Go, Python, Ruby and every other language through LLVM-IR.
https://fraunhofer-aisec.github.io/cpg/
Apache License 2.0
290 stars 62 forks source link

Remove `UnaryOperator` used as throw from EOG pass and spec #1819

Closed KuechA closed 3 weeks ago

KuechA commented 3 weeks ago

Currently, the EvaluationOrderGraphPass handles the UnaryOperator with operatorCode "throw" as a throw expression. Since all frontends have been migrated to use the ThrowExpression, this is obsolete. The eog-spec-file is updated and the pass too.

Closes #1817

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.

Project coverage is 75.24%. Comparing base (692023f) to head (5ef8714). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...hofer/aisec/cpg/passes/EvaluationOrderGraphPass.kt 84.21% 2 Missing and 1 partial :warning:
Additional details and impacted files | [Files with missing lines](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1819?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC) | Coverage Δ | | |---|---|---| | [...hofer/aisec/cpg/passes/EvaluationOrderGraphPass.kt](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1819?src=pr&el=tree&filepath=cpg-core%2Fsrc%2Fmain%2Fkotlin%2Fde%2Ffraunhofer%2Faisec%2Fcpg%2Fpasses%2FEvaluationOrderGraphPass.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC#diff-Y3BnLWNvcmUvc3JjL21haW4va290bGluL2RlL2ZyYXVuaG9mZXIvYWlzZWMvY3BnL3Bhc3Nlcy9FdmFsdWF0aW9uT3JkZXJHcmFwaFBhc3Mua3Q=) | `89.59% <84.21%> (+0.29%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/Fraunhofer-AISEC/cpg/pull/1819/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Fraunhofer-AISEC)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.