Logo
Explore Help
Sign In
greg/cpython
1
0
Fork 0
You've already forked cpython
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
f528045f695f7483d955a1eae4c1df68b1b4cacd
cpython/Tools/c-analyzer/c-analyzer.py

8 lines
195 B
Python
Raw Normal View History

bpo-36876: Fix the C analyzer tool. (GH-22841) 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
2020-10-22 18:42:51 -06:00
from cpython.__main__ import parse_args, main, configure_logger
cmd, cmd_kwargs, verbosity, traceback_cm = parse_args()
configure_logger(verbosity)
with traceback_cm:
main(cmd, cmd_kwargs)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 1498ms Template: 12ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API