Warnings wrappers to use from C++ (#5291)

* Add warning wrappers that allow to call warnings from pybind level

* Add missing include for warnings.h

* Change messages on failed checks, extend testing

* clang-tidy fix

* Refactor tests for warnings

* Move handle before check

* Remove unnecessary parametrized
This commit is contained in:
Jan Iwaszkiewicz
2024-08-29 05:55:50 +02:00
committed by GitHub
parent 65f4266cef
commit 66c3774a64
6 changed files with 194 additions and 2 deletions

View File

@@ -154,7 +154,8 @@ set(PYBIND11_TEST_FILES
test_unnamed_namespace_a
test_unnamed_namespace_b
test_vector_unique_ptr_member
test_virtual_functions)
test_virtual_functions
test_warnings)
# Invoking cmake with something like:
# cmake -DPYBIND11_TEST_OVERRIDE="test_callbacks.cpp;test_pickling.cpp" ..