]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126211: Exclude preprocessor directives from statements containing escaping calls...
authormpage <mpage@cs.stanford.edu>
Fri, 1 Nov 2024 15:53:03 +0000 (08:53 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2024 15:53:03 +0000 (08:53 -0700)
commit821759d63101334fa8a1863135429c341ca0b234
tree43f87d3cffd7a62e9b8204b42d72d49243e5015b
parent32e07fd377f81cbeb8c108fc791a3e7d631319b6
gh-126211: Exclude preprocessor directives from statements containing escaping calls (#126213)

The cases generator inserts code to save and restore the stack pointer around
statements that contain escaping calls. To find the beginning of such statements,
we would walk backwards from the escaping call until we encountered a token that
was treated as a statement terminator. This set of terminators should include
preprocessor directives.
Lib/test/test_generated_cases.py
Tools/cases_generator/analyzer.py