Skip to content

Commit

Permalink
bpo-36876: Fix the C analyzer tool. (GH-22841)
Browse files Browse the repository at this point in the history
The original tool wasn't working right and it was simpler to create a new one, partially re-using some of the old code. At this point the tool runs properly on the master. (Try: ./python Tools/c-analyzer/c-analyzer.py analyze.)  It take ~40 seconds on my machine to analyze the full CPython code base.

Note that we'll need to iron out some OS-specific stuff (e.g. preprocessor). We're okay though since this tool isn't used yet in our workflow. We will also need to verify the analysis results in detail before activating the check in CI, though I'm pretty sure it's close.

https://bugs.python.org/issue36876
  • Loading branch information
ericsnowcurrently authored Oct 23, 2020
1 parent ec388cf commit 345cd37
Show file tree
Hide file tree
Showing 92 changed files with 8,882 additions and 10,553 deletions.
15 changes: 0 additions & 15 deletions Lib/test/test_tools/test_c_analyzer/__init__.py

This file was deleted.

5 changes: 0 additions & 5 deletions Lib/test/test_tools/test_c_analyzer/__main__.py

This file was deleted.

6 changes: 0 additions & 6 deletions Lib/test/test_tools/test_c_analyzer/test_common/__init__.py

This file was deleted.

Loading

0 comments on commit 345cd37

Please sign in to comment.