mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-06 13:45:00 +00:00
Merge pull request #773 from libexpat/clang-17
Upgrade Clang from 15 to 17
This commit is contained in:
commit
2604c59eb9
5 changed files with 9 additions and 9 deletions
2
.ci.sh
2
.ci.sh
|
@ -39,7 +39,7 @@ if [[ ${RUNNER_OS} = macOS ]]; then
|
|||
export PATH="/usr/local/opt/coreutils/libexec/gnubin${PATH:+:}${PATH}"
|
||||
export PATH="/usr/local/opt/findutils/libexec/gnubin${PATH:+:}${PATH}"
|
||||
elif [[ ${RUNNER_OS} = Linux ]]; then
|
||||
export PATH="/usr/lib/llvm-15/bin:${PATH}"
|
||||
export PATH="/usr/lib/llvm-17/bin:${PATH}"
|
||||
else
|
||||
echo "Unsupported RUNNER_OS \"${RUNNER_OS}\"." >&2
|
||||
exit 1
|
||||
|
|
10
.github/workflows/linux.yml
vendored
10
.github/workflows/linux.yml
vendored
|
@ -115,13 +115,13 @@ jobs:
|
|||
set -x
|
||||
source /etc/os-release
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-15 main"
|
||||
sudo add-apt-repository "deb https://apt.llvm.org/${UBUNTU_CODENAME}/ llvm-toolchain-${UBUNTU_CODENAME}-17 main"
|
||||
sudo apt-get update # due to new repository
|
||||
# NOTE: Please note the version-specific ${PATH} extension for Clang in .ci.sh
|
||||
# NOTE: Please note the version-specific ${PATH} extension for Clang adding /usr/lib/llvm-17/bin in .ci.sh
|
||||
sudo apt-get install --yes --no-install-recommends -V \
|
||||
clang-15 \
|
||||
clang-format-15 \
|
||||
libclang-rt-15-dev
|
||||
clang-17 \
|
||||
clang-format-17 \
|
||||
libclang-rt-17-dev
|
||||
- name: Install build dependencies (common)
|
||||
run: |-
|
||||
sudo apt-get install --yes --no-install-recommends -V \
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
#define VTABLE VTABLE1, PREFIX(toUtf8), PREFIX(toUtf16)
|
||||
|
||||
#define UCS2_GET_NAMING(pages, hi, lo) \
|
||||
(namingBitmap[(pages[hi] << 3) + ((lo) >> 5)] & (1u << ((lo)&0x1F)))
|
||||
(namingBitmap[(pages[hi] << 3) + ((lo) >> 5)] & (1u << ((lo) & 0x1F)))
|
||||
|
||||
/* A 2 byte UTF-8 representation splits the characters 11 bits between
|
||||
the bottom 5 and 6 bits of the bytes. We need 8 bits to index into
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
# endif
|
||||
|
||||
# define HAS_CHARS(enc, ptr, end, count) \
|
||||
((end) - (ptr) >= ((count)*MINBPC(enc)))
|
||||
((end) - (ptr) >= ((count) * MINBPC(enc)))
|
||||
|
||||
# define HAS_CHAR(enc, ptr, end) HAS_CHARS(enc, ptr, end, 1)
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
# ifndef S_IFMT
|
||||
# define S_IFMT _S_IFMT
|
||||
# endif
|
||||
# define S_ISREG(m) (((m)&S_IFMT) == S_IFREG)
|
||||
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||
#endif /* not S_ISREG */
|
||||
|
||||
#ifndef O_BINARY
|
||||
|
|
Loading…
Add table
Reference in a new issue