summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorJoshua Root <jmr@macports.org>2025-01-22 09:25:30 (GMT)
committerGitHub <noreply@github.com>2025-01-22 09:25:30 (GMT)
commitedf803345a5c57c38fca3850386530e30b397eca (patch)
tree85a512eb7ac0795a05917b48ddf2f351fe1da922 /Python/Python-ast.c
parent86c1a60d5a28cfb51f8843b307f8969c40e3bbec (diff)
downloadcpython-edf803345a5c57c38fca3850386530e30b397eca.zip
cpython-edf803345a5c57c38fca3850386530e30b397eca.tar.gz
cpython-edf803345a5c57c38fca3850386530e30b397eca.tar.bz2
gh-128902: Fix check for fallthrough attribute support (#128903)
Clang versions prior to 10 (which corresponds to Apple Clang 12) do not support the GCC extension syntax __attribute__((fallthrough)), but do evaluate __has_attribute(fallthrough) to 1 because they support the C++11 style syntax [[fallthrough]]. The only way to tell if the GCC style syntax is supported is thus to check the clang version. Ref: https://github.com/llvm/llvm-project/commit/1e0affb6e564b7361b0aadb38805f26deff4ecfc
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions