Fix compatibility with clang-15
MODIFY
binding-generator/Cargo.toml
binding-generator/Cargo.toml
name = "opencv-binding-generator"
description = "Binding generator for opencv crate"
repository = "https://github.com/twistedfall/opencv-rust"
-version = "0.47.0"
+version = "0.47.1"
license = "MIT"
authors = ["Pro <twisted.fall@gmail.com>"]
edition = "2018"

MODIFY
binding-generator/src/element.rs
binding-generator/src/element.rs
@@ -70,7 +70,7 @@ impl DefaultElement {
parts.push(parent_name);
}
}
- EntityKind::TranslationUnit | EntityKind::UnexposedDecl => {}
+ EntityKind::TranslationUnit | EntityKind::UnexposedDecl | EntityKind::NotImplemented => {}
_ => {
unreachable!("Can't get kind of parent for cpp namespace: {:#?}", parent)
}
@@ -166,7 +166,7 @@ impl DefaultElement {
}
}
EntityKind::Constructor | EntityKind::FunctionTemplate | EntityKind::FunctionDecl
- | EntityKind::Method => {}
+ | EntityKind::Method | EntityKind::NotImplemented => {}
_ => {
unreachable!("Can't get kind of parent: {:#?} for element: {:#?}", parent, e)
}

MODIFY
ci/install-windows-chocolatey.sh
ci/install-windows-chocolatey.sh
set -vex
-choco install -y llvm --version 14.0.6
+choco install -y llvm --version 15.0.1
choco install -y opencv --version "$OPENCV_VERSION"

MODIFY
ci/install-windows-vcpkg.sh
ci/install-windows-vcpkg.sh
@@ -21,7 +21,7 @@ echo "set(VCPKG_BUILD_TYPE release)" >> "$VCPKG_ROOT/triplets/x64-windows-static
echo "set(VCPKG_BUILD_TYPE release)" >> "$VCPKG_ROOT/triplets/x86-windows.cmake"
export VCPKG_DEFAULT_TRIPLET=x64-windows
#./vcpkg install llvm # takes very long time
-choco install -y llvm --version 14.0.6
+choco install -y llvm --version 15.0.1
"$VCPKG_ROOT/vcpkg" upgrade --no-dry-run
"$VCPKG_ROOT/vcpkg" install --recurse "opencv${VCPKG_OPENCV_VERSION}[contrib,nonfree]"
popd

Fix compatibility with clang-15