semgrep / pfff

pfff is mainly an OCaml API to write static analysis, dynamic analysis, code visualizations, code navigations, or style-preserving source-to-source transformations such as refactorings on source code.
https://semgrep.dev
Other
186 stars 29 forks source link

feat: Add alternation function for options to `Common` #523

Closed kopecs closed 2 years ago

kopecs commented 2 years ago

Currently we only have a function of type 'a option -> 'a -> 'a. It's also useful to have one where both inputs are options.

Helps https://github.com/returntocorp/semgrep/pull/5343

Security