Skip to content

Commit

Permalink
Upgrade to LLVM 15.0.6.
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <[email protected]>
  • Loading branch information
sighingnow committed Jan 9, 2023
1 parent c855e78 commit e73f26e
Show file tree
Hide file tree
Showing 13 changed files with 72 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/libclang-alpine-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/libclang-linux-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
35 changes: 34 additions & 1 deletion .github/workflows/libclang-linux-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/libclang-linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/libclang-macosx-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/libclang-sdist.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/libclang-windows-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/libclang-windows-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:Date: 2021-04-17
:Version: 15.0.3
:Version: 15.0.6
:Authors: - The LLVM Team

.. meta::
Expand Down
31 changes: 27 additions & 4 deletions python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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;
Expand Down Expand Up @@ -1398,14 +1403,32 @@ 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

# Cursor that represents the translation unit itself.
#
# 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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion setup_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e73f26e

Please sign in to comment.