Skip to content

Commit 45bc1c5

Browse files
authored
Merge pull request #1689 from puremourning/update-clang-16
Update clang 16
2 parents 190fc8a + ddf175d commit 45bc1c5

File tree

201 files changed

+4227
-1204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+4227
-1204
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
sudo apt-get install clang-7
109109
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-7 100
110110
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-7 100
111-
- name: Run pip and prepare codecov
111+
- name: Run pip and prepare coverage
112112
if: matrix.benchmark == false
113113
run: |
114114
python3 -m pip install -r test_requirements.txt
@@ -119,9 +119,15 @@ jobs:
119119
- name: Run benchmarks
120120
if: matrix.benchmark == true
121121
run: python3 benchmark.py --quiet
122-
- name: Send coverage data
122+
- name: Combine and summarise coverage
123123
if: matrix.benchmark == false
124-
run: codecov --name "${{ matrix.runs-on }}-${{ matrix.name_suffix }}-tests" 1>/dev/null
124+
run: coverage combine && coverage xml
125+
- name: Upload coverage data
126+
uses: codecov/codecov-action@v3
127+
if: matrix.benchmark == false
128+
with:
129+
name: "${{ matrix.runs-on }}-${{ matrix.name_suffix }}-tests"
130+
gcov: true
125131

126132
linux_lint:
127133
name: "C++ Lint"
@@ -245,7 +251,7 @@ jobs:
245251
uses: actions/setup-go@v2
246252
with:
247253
stable: true
248-
- name: Run pip and prepare codecov
254+
- name: Run pip and prepare coverage
249255
if: matrix.benchmark == false
250256
run: |
251257
python3 -m pip install -r test_requirements.txt
@@ -257,6 +263,12 @@ jobs:
257263
- name: Run tests
258264
if: matrix.benchmark == false
259265
run: python3 run_tests.py --msvc ${{ matrix.msvc }} --quiet
266+
- name: Combine and summarise coverage
267+
if: matrix.benchmark == false
268+
run: coverage combine && coverage xml
260269
- name: Upload coverage data
270+
uses: codecov/codecov-action@v3
261271
if: matrix.benchmark == false
262-
run: codecov --name ${{ matrix.runs-on }}-${{ matrix.python-arch }} >null
272+
with:
273+
name: "${{ matrix.runs-on }}-${{ matrix.name_suffix }}-tests"
274+
gcov: true

build.py

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def Exit( self ):
107107
'issue tracker, including the entire output of this script (with --verbose) '
108108
'and the invocation line used to run it.' )
109109

110-
CLANGD_VERSION = '15.0.1'
110+
CLANGD_VERSION = '16.0.1'
111111
CLANGD_BINARIES_ERROR_MESSAGE = (
112112
'No prebuilt Clang {version} binaries for {platform}. '
113113
'You\'ll have to compile Clangd {version} from source '
@@ -217,10 +217,6 @@ def OnWindows():
217217
return platform.system() == 'Windows'
218218

219219

220-
def OnFreeBSD():
221-
return platform.system() == 'FreeBSD'
222-
223-
224220
def OnAArch64():
225221
return platform.machine().lower().startswith( 'aarch64' )
226222

@@ -1131,38 +1127,30 @@ def GetClangdTarget():
11311127
if OnWindows():
11321128
return [
11331129
( 'clangd-{version}-win64',
1134-
'e5da88a729d1c9d00c8a965bdbfdf081a9c7a1602d5cdf7cd75aacea72180195' ),
1130+
'a0a7b16f6f92d545c84baff5e4bdb56897e955689ffc7407c915cc9d3c69a945' ),
11351131
( 'clangd-{version}-win32',
1136-
'e5be596af3b4ab5f648e6a3b67bb60a3e97f6567d2b3c43a38f30158792e2641' ) ]
1132+
'870de4d2a45380eba7c6b6640e2cb870219dd2025ed3bcb58101fd1d17f51d75' ) ]
11371133
if OnMac():
11381134
if OnArm():
11391135
return [
11401136
( 'clangd-{version}-arm64-apple-darwin',
1141-
'7a606e37b03a795bf673116ef6c58cb888e7bd01199602bcae549c90927f124f' ) ]
1137+
'c5b0a314c00e4ce839ce1f4ee1ed46116f839949b7874affa759e10589340948' ) ]
11421138
return [
11431139
( 'clangd-{version}-x86_64-apple-darwin',
1144-
'0be7dc9042584a84524f57d62bde0ef168b3e00a02205053cfe5f73a13475c97' ) ]
1145-
# FreeBSD binaries are not yet available for clang 15.0.1
1146-
#
1147-
# if OnFreeBSD():
1148-
# return [
1149-
# ( 'clangd-{version}-amd64-unknown-freebsd13',
1150-
# '' ),
1151-
# ( 'clangd-{version}-i386-unknown-freebsd13',
1152-
# '' ) ]
1140+
'826c85889a1c288418e2c05b91e40158cde06f2e79f1e951d4983de2652a6d2c' ) ]
11531141
if OnAArch64():
11541142
return [
11551143
( 'clangd-{version}-aarch64-linux-gnu',
1156-
'2497705a703c0ed5b5ef8717e247b87d084729d6cae20176e0f4dc8e33fff24b' ) ]
1144+
'79f4a0a20342479c0e29573cf58810e0daabbf00178cf042edf6e1acb20a8602' ) ]
11571145
if OnArm():
11581146
return [
11591147
None, # First list index is for 64bit archives. ARMv7 is 32bit only.
11601148
( 'clangd-{version}-armv7a-linux-gnueabihf',
1161-
'615262e7827f0ab273445390d9a0f4d841ba7fc75326483466651a846f4f5586' ) ]
1149+
'e521f21021885aaeb94e631949db6c0a65cc9c5c9c708afe4a42a058eb91ebca' ) ]
11621150
if OnX86_64():
11631151
return [
11641152
( 'clangd-{version}-x86_64-unknown-linux-gnu',
1165-
'8bf1177483daf10012f4e98ae4a6eec4f737bd1b6c8823b3b9b4a670479fcf58' ) ]
1153+
'51e69f6f5394ed6990cd7d938c53135ef2b5f8d2da1026eb291ffb3c81968847' ) ]
11661154
raise InstallationFailed(
11671155
CLANGD_BINARIES_ERROR_MESSAGE.format( version = CLANGD_VERSION,
11681156
platform = 'this system' ) )

0 commit comments

Comments
 (0)