cpython/Tools/c-analyzer/c_parser/preprocessor
Eric Snow 1ff81c0cb6
gh-81057: Add a CI Check for New Unsupported C Global Variables (gh-102506)
This will keep us from adding new unsupported (i.e. non-const) C global variables, which would break interpreter isolation.

FYI, historically it is very uncommon for new global variables to get added. Furthermore, it is rare for new code to break the c-analyzer. So the check should almost always pass unnoticed.

Note that I've removed test_check_c_globals. A test wasn't a great fit conceptually and was super slow on debug builds. A CI check is a better fit.

This also resolves gh-100237.

https://github.com/python/cpython/issues/81057
2023-03-14 10:05:54 -06:00
..
__init__.py gh-90110: Fix the c-analyzer Tool (gh-96731) 2022-09-12 11:09:31 -06:00
__main__.py bpo-45952: Get the C analyzer tool working again. (gh-29882) 2021-12-01 11:20:20 -07:00
common.py gh-81057: Add a CI Check for New Unsupported C Global Variables (gh-102506) 2023-03-14 10:05:54 -06:00
errors.py
gcc.py gh-81057: Add a CI Check for New Unsupported C Global Variables (gh-102506) 2023-03-14 10:05:54 -06:00
pure.py gh-90110: Fix the c-analyzer Tool (gh-96731) 2022-09-12 11:09:31 -06:00