diff --git a/.github/workflows/libclang-alpine-amd64.yml b/.github/workflows/libclang-alpine-amd64.yml index f4dc7fb..75e1a5b 100644 --- a/.github/workflows/libclang-alpine-amd64.yml +++ b/.github/workflows/libclang-alpine-amd64.yml @@ -3,7 +3,7 @@ name: libclang-alpine-amd64 on: [push, pull_request] env: - LLVM_VER: 15.0.3 + LLVM_VER: 15.0.6 concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/libclang-linux-aarch64.yml b/.github/workflows/libclang-linux-aarch64.yml index 315fc5b..b504328 100644 --- a/.github/workflows/libclang-linux-aarch64.yml +++ b/.github/workflows/libclang-linux-aarch64.yml @@ -3,7 +3,7 @@ name: libclang-linux-aarch64 on: [push, pull_request] env: - LLVM_VER: 15.0.3 + LLVM_VER: 15.0.6 concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/libclang-linux-amd64.yml b/.github/workflows/libclang-linux-amd64.yml index 43f7c9c..a084f04 100644 --- a/.github/workflows/libclang-linux-amd64.yml +++ b/.github/workflows/libclang-linux-amd64.yml @@ -3,7 +3,7 @@ name: libclang-linux-amd64 on: [push, pull_request] env: - LLVM_VER: 15.0.3 + LLVM_VER: 15.0.6 concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} @@ -69,3 +69,36 @@ jobs: password: ${{ secrets.PYPI_TOKEN }} verbose: true print_hash: true + + build-and-deploy-sdist: + if: "!contains(github.event.head_commit.message, 'skip ci')" + runs-on: ubuntu-20.04 + needs: [build-and-deploy] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: install wheel dependencies + run: | + pip3 install wheel + - name: get llvm-project + run: | + wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VER/llvm-project-$LLVM_VER.src.tar.xz + tar xf llvm-project-$LLVM_VER.src.tar.xz + mv llvm-project-$LLVM_VER.src llvm-project-$LLVM_VER + - name: generate wheel package + run: | + python3 setup.py sdist + - uses: actions/upload-artifact@v3 + with: + name: wheel-${{env.LLVM_VER}}-sdist + path: dist/*.tar.gz + - name: Publish to PyPI + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages_dir: dist/ + password: ${{ secrets.PYPI_TOKEN }} + verbose: true + print_hash: true diff --git a/.github/workflows/libclang-linux-arm.yml b/.github/workflows/libclang-linux-arm.yml index 29a11c5..7b431a4 100644 --- a/.github/workflows/libclang-linux-arm.yml +++ b/.github/workflows/libclang-linux-arm.yml @@ -3,7 +3,7 @@ name: libclang-linux-arm on: [push, pull_request] env: - LLVM_VER: 15.0.3 + LLVM_VER: 15.0.6 concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/libclang-macosx-amd64.yml b/.github/workflows/libclang-macosx-amd64.yml index eac4646..664d740 100644 --- a/.github/workflows/libclang-macosx-amd64.yml +++ b/.github/workflows/libclang-macosx-amd64.yml @@ -3,7 +3,7 @@ name: libclang-macosx-amd64 on: [push, pull_request] env: - LLVM_VER: 15.0.3 + LLVM_VER: 15.0.6 concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/libclang-sdist.yml b/.github/workflows/libclang-sdist.yml deleted file mode 100644 index dc21061..0000000 --- a/.github/workflows/libclang-sdist.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: libclang-sdist - -on: [push, pull_request] - -env: - LLVM_VER: 15.0.3 - -concurrency: - group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} - cancel-in-progress: true - -jobs: - build-and-deploy: - if: "!contains(github.event.head_commit.message, 'skip ci')" - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: install wheel dependencies - run: | - pip3 install wheel - - name: get llvm-project - run: | - wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VER/llvm-project-$LLVM_VER.src.tar.xz - tar xf llvm-project-$LLVM_VER.src.tar.xz - mv llvm-project-$LLVM_VER.src llvm-project-$LLVM_VER - - name: generate wheel package - run: | - python3 setup.py sdist - - uses: actions/upload-artifact@v3 - with: - name: wheel-${{env.LLVM_VER}}-manylinux1_x86_64 - path: dist/*.tar.gz - - name: Publish to PyPI - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages_dir: dist/ - password: ${{ secrets.PYPI_TOKEN }} - verbose: true - print_hash: true diff --git a/.github/workflows/libclang-windows-aarch64.yml b/.github/workflows/libclang-windows-aarch64.yml index 9c3b119..9f5e6eb 100644 --- a/.github/workflows/libclang-windows-aarch64.yml +++ b/.github/workflows/libclang-windows-aarch64.yml @@ -3,7 +3,7 @@ name: libclang-windows-aarch64 on: [push, pull_request] env: - LLVM_VER: 15.0.3 + LLVM_VER: 15.0.6 concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/.github/workflows/libclang-windows-amd64.yml b/.github/workflows/libclang-windows-amd64.yml index 3dd6e12..32f8b6c 100644 --- a/.github/workflows/libclang-windows-amd64.yml +++ b/.github/workflows/libclang-windows-amd64.yml @@ -3,7 +3,7 @@ name: libclang-windows-amd64 on: [push, pull_request] env: - LLVM_VER: 15.0.3 + LLVM_VER: 15.0.6 concurrency: group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} diff --git a/docs/conf.py b/docs/conf.py index 33f68b5..aed67f7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -63,9 +63,9 @@ # built documents. # # The short X.Y version. -version = '15.0.3' +version = '15.0.6' # The full version, including alpha/beta/rc tags. -release = '15.0.3' +release = '15.0.6' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/index.rst b/docs/index.rst index 02b6a1e..eb48941 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,5 +1,5 @@ :Date: 2021-04-17 -:Version: 15.0.3 +:Version: 15.0.6 :Authors: - The LLVM Team .. meta:: diff --git a/python/clang/cindex.py b/python/clang/cindex.py index bca647b..1ae8aa7 100644 --- a/python/clang/cindex.py +++ b/python/clang/cindex.py @@ -1084,7 +1084,6 @@ def __repr__(self): # Represents an @available(...) check. CursorKind.OBJC_AVAILABILITY_CHECK_EXPR = CursorKind(148) - # Fixed point literal CursorKind.FIXED_POINT_LITERAL = CursorKind(149) @@ -1097,6 +1096,12 @@ def __repr__(self): # OpenCL's addrspace_cast<> expression. CursorKind.CXX_ADDRSPACE_CAST_EXPR = CursorKind(152) +# Expression that references a C++20 concept. +CursorKind.CONCEPT_SPECIALIZATION_EXPR = CursorKind(153) + +# Expression that references a C++20 concept. +CursorKind.REQUIRES_EXPR = CursorKind(154) + # A statement whose specific kind is not exposed via this interface. # # Unexposed statements have the same operations as any other kind of statement; @@ -1398,6 +1403,24 @@ def __repr__(self): # OpenMP parallel loop directive. CursorKind.OMP_PARALLEL_GENERIC_LOOP_DIRECTIVE = CursorKind(298) +# OpenMP target parallel loop directive. +CursorKind.OMP_TARGET_PARALLEL_GENERIC_LOOP_DIRECTIVE = CursorKind(299) + +# OpenMP parallel masked directive. +CursorKind.OMP_PARALLEL_MASKED_DIRECTIVE = CursorKind(300) + +# OpenMP masked taskloop directive. +CursorKind.OMP_MASKED_TASK_LOOP_DIRECTIVE = CursorKind(301) + +# OpenMP masked taskloop simd directive. +CursorKind.OMP_MASKED_TASK_LOOP_SIMD_DIRECTIVE = CursorKind(302) + +# OpenMP parallel masked taskloop directive. +CursorKind.OMP_PARALLEL_MASKED_TASK_LOOP_DIRECTIVE = CursorKind(303) + +# OpenMP parallel masked taskloop simd directive. +CursorKind.OMP_PARALLEL_MASKED_TASK_LOOP_SIMD_DIRECTIVE = CursorKind(304) + ### # Other Kinds @@ -1405,7 +1428,7 @@ def __repr__(self): # # The translation unit cursor exists primarily to act as the root cursor for # traversing the contents of a translation unit. -CursorKind.TRANSLATION_UNIT = CursorKind(300) +CursorKind.TRANSLATION_UNIT = CursorKind(350) ### # Attributes @@ -1520,9 +1543,9 @@ def from_location(tu, location): cursor._tu = tu return cursor - + def __hash__(self): - return self.hash +- return self.hash def __eq__(self, other): return conf.lib.clang_equalCursors(self, other) diff --git a/setup.py b/setup.py index 9f1d8ad..da98682 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='libclang', - version='15.0.3', + version='15.0.6', description='Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier.', long_description=long_description, long_description_content_type='text/markdown', diff --git a/setup_ext.py b/setup_ext.py index 130b76b..28cc1b8 100644 --- a/setup_ext.py +++ b/setup_ext.py @@ -54,7 +54,7 @@ def run(self): setup( name='libclang', - version='15.0.3', + version='15.0.6', description='Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier.', long_description=long_description, long_description_content_type='text/markdown',