cppdep
cppdep copied to clipboard
C/C++ Dependency Analyzer: a rewrite of John Lakos' dep_utils (adep/cdep/ldep) from "Large-Scale C++ Software Design"
This PR contains some fixes that I needed to get the cppdep tool running in my recent python 3.8 environment. Also handling of errors in the yaml file was adapted...
``` File "/.../cppdep/cppdep.py", line 92, in path_common path = os.path.commonprefix(paths) File "/home/olzhas/temp/pyenv/lib/python3.6/genericpath.py", line 76, in commonprefix if not isinstance(m[0], (list, tuple)): TypeError: 'set' object does not support indexing ```
I've just installed this project, tried to run it but I get this error message. ``` Traceback (most recent call last): File "cppdep.py", line 36, in from .graph import Graph...
Incorporation of [include-wrangler](https://github.com/lukedodd/include-wrangler) analysis - header file cost - include cost - translation unit cost - other features In collaboration with include-wrangler author @lukedodd
> ...we consider classes that refer to more than 20 other classes and which are referred to by more than 20 other classes as critical. On the level of subsystems...
- [ ] existence - [ ] duplicate - [ ] redundancy - [ ] inconsistency - [ ] conflict - [x] schema
The original code lacks tests and relies on manual testing via the main test driver. - [ ] Unit tests - [ ] Analysis validation - [ ] Performance tests
- [ ] Duplicate include - [ ] Redundant (transitive from the component header) include - [ ] Missing a component header (incomplete component) - [ ] Failure to locate...