Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/bindgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
libtinfo: libtinfo5_6.3+20220423-2ubuntu0.1_amd64.deb
- os: ubuntu-24.04-arm
libtinfo: libtinfo5_6.3+20220423-2ubuntu0.1_arm64.deb
llvm_version: ["16.0", "20.1"]
llvm_version: ["16.0", "20.1", "21.1"]
release_build: [0, 1]
no_default_features: [0, 1]
# FIXME: There are no pre-built static libclang libraries, so the
Expand All @@ -125,15 +125,15 @@ jobs:
- platform:
os: ubuntu-latest
libtinfo: libtinfo5_6.3+20220423-2ubuntu0.1_amd64.deb
llvm_version: "20.1"
llvm_version: "21.1"
release_build: 0
no_default_features: 0
feature_extra_asserts: 1

# Ensure stuff works on macos too
- platform:
os: macos-latest
llvm_version: "20.1"
llvm_version: "21.1"
release_build: 0
no_default_features: 0
feature_extra_asserts: 0
Expand All @@ -160,7 +160,7 @@ jobs:
BINDGEN_FEATURE_RUNTIME: ${{matrix.feature_runtime}}
BINDGEN_FEATURE_EXTRA_ASSERTS: ${{matrix.feature_extra_asserts}}
BINDGEN_NO_DEFAULT_FEATURES: ${{matrix.no_default_features}}
BINDGEN_RUST_FOR_LINUX_TEST: ${{startsWith(matrix.platform.os, 'ubuntu') && matrix.llvm_version == '20.1' && matrix.feature_extra_asserts == 0 && 1 || 0}}
BINDGEN_RUST_FOR_LINUX_TEST: ${{startsWith(matrix.platform.os, 'ubuntu') && matrix.llvm_version == '21.1' && matrix.feature_extra_asserts == 0 && 1 || 0}}
run: ./ci/test.sh

test-book:
Expand Down
1 change: 1 addition & 0 deletions bindgen-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ runtime = ["bindgen/runtime"]
__testing_only_extra_assertions = ["bindgen/__testing_only_extra_assertions"]
__testing_only_libclang_16 = ["bindgen/__testing_only_libclang_16"]
__testing_only_libclang_20 = ["bindgen/__testing_only_libclang_20"]
__testing_only_libclang_21 = []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 9 additions & 55 deletions bindgen-tests/tests/expectations/tests/transform-op.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions bindgen-tests/tests/expectations/tests/variadic_template_union.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions bindgen-tests/tests/headers/recursive_alias_canonicalization.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// bindgen-flags: -- -std=c++14

namespace test {
union RecursiveUnion;
typedef RecursiveUnion AliasUnion;

union RecursiveUnion {
int x;
AliasUnion* self_ptr;
};
}
9 changes: 9 additions & 0 deletions bindgen-tests/tests/headers/variadic_template_union.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// bindgen-flags: -- -std=c++14

namespace test {
template <class _Arg0, class... _Args>
union __union {
_Arg0 __arg;
__union<_Args...> __u;
};
}
Loading
Loading