Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 743 Bytes

File metadata and controls

17 lines (14 loc) · 743 Bytes

cpp_finder

Author: R. Marion

To use:

python cpp_finder_3.py {directory name} [-o {output file name}]
The output is in json, so you might want to give the file a .json extension

Notes:

This is in early draft state.
This does a decent job of parsing a directory for 3rd-party C++ in a code base. It looks for several package types, including CMake and Conan. It will also look for #include within files. This does not do transitive dependencies.
I used AI for the regex stuff. Thanks AI!

TODO

Most TODO notes are in the source. But

  1. create a hash library of the top n C++ projects to improve version detection
  2. and create an SBOM-able output
  3. and ... there is a transitive dependency strategy ... more to come