compile
command_line: /opt/hostedtoolcache/cmake/4.0.3/x64/cmake-4.0.3-linux-x86_64/bin/cmake -E __run_co_compile --iwyu=iwyu;--driver-mode=gcc -- /usr/bin/clang-17 -Dbtck_python_EXPORTS -I/home/runner/work/btck/btck/include -isystem /usr/include/python3.12 -O3 -DNDEBUG -fPIC -fvisibility=hidden -MD -MT bindings/python/CMakeFiles/btck-python.dir/src/transaction.c.o -MF bindings/python/CMakeFiles/btck-python.dir/src/transaction.c.o.d -o bindings/python/CMakeFiles/btck-python.dir/src/transaction.c.o -c /home/runner/work/btck/btck/bindings/python/src/transaction.c
working_directory: "/home/runner/work/btck/btck/build"
Target: btck-python
Target Type: MODULE_LIBRARY
Source: /home/runner/work/btck/btck/bindings/python/src/transaction.c
Language: C
Config: Release
stderr:
Warning: include-what-you-use reported diagnostics:
/home/runner/work/btck/btck/bindings/python/src/transaction.h should add these lines:
#include <pytypedefs.h> // for PyObject, PyTypeObject
#include "object.h" // for _typeobject
struct btck_Transaction;
/home/runner/work/btck/btck/bindings/python/src/transaction.h should remove these lines:
- #include <Python.h> // lines 7-7
- #include <btck/btck.h> // lines 10-10
- #include <stdbool.h> // lines 8-8
The full include-list for /home/runner/work/btck/btck/bindings/python/src/transaction.h:
#include <pytypedefs.h> // for PyObject, PyTypeObject
#include "object.h" // for _typeobject
struct btck_Transaction;
---
/home/runner/work/btck/btck/bindings/python/src/transaction.c should add these lines:
#include <assert.h> // for assert
#include <modsupport.h> // for PyArg_ParseTupleAndKeywords
#include <object.h> // for lenfunc, destructor, ssizeargfunc
#include <objimpl.h> // for PyObject_New
#include <pybuffer.h> // for Py_buffer
#include <pyerrors.h> // for PyErr_SetString, PyExc_IndexError
#include <pymacro.h> // for Py_UNUSED
#include <pyport.h> // for Py_ssize_t
#include <stddef.h> // for NULL
struct btck_Transaction;
/home/runner/work/btck/btck/bindings/python/src/transaction.c should remove these lines:
The full include-list for /home/runner/work/btck/btck/bindings/python/src/transaction.c:
#include "transaction.h"
#include <assert.h> // for assert
#include <btck/btck.h> // for btck_Transaction_Release, btck_Trans...
#include <modsupport.h> // for PyArg_ParseTupleAndKeywords
#include <object.h> // for lenfunc, destructor, ssizeargfunc
#include <objimpl.h> // for PyObject_New
#include <pybuffer.h> // for Py_buffer
#include <pyerrors.h> // for PyErr_SetString, PyExc_IndexError
#include <pymacro.h> // for Py_UNUSED
#include <pyport.h> // for Py_ssize_t
#include <stddef.h> // for NULL
#include "_slice.h" // for Slice_subscript
#include "transaction_output.h" // for TransactionOutput_New
struct btck_Transaction;
---