diff --git a/src/ctags.cpp b/src/ctags.cpp index 46226e0..65bbf2c 100644 --- a/src/ctags.cpp +++ b/src/ctags.cpp @@ -289,11 +289,17 @@ void Ctags::init_module(py::module &api) { .def_readwrite("symbol", &Ctags::Location::symbol) .def_readwrite("scope", &Ctags::Location::scope) .def_readwrite("source", &Ctags::Location::source) + .def_readwrite("kind", &Ctags::Location::kind) .def("__bool__", &Ctags::Location::operator bool) ; ctags + .def(py::init(), + py::arg("path"), + py::arg("enable_scope"), + py::arg("enable_kind"), + py::arg("languages")) .def("get_location", &Ctags::get_location, py::arg("line"), py::arg("add_markup"), @@ -303,6 +309,8 @@ void Ctags::init_module(py::module &api) { py::arg("name"), py::arg("type"), py::arg("languages")) + .def_readwrite("project_path", &Ctags::project_path) + .def("__bool__", &Ctags::operator bool) ; } diff --git a/tests/python_bindings/CMakeLists.txt b/tests/python_bindings/CMakeLists.txt index aeb8ad8..bcc26c9 100644 --- a/tests/python_bindings/CMakeLists.txt +++ b/tests/python_bindings/CMakeLists.txt @@ -23,9 +23,9 @@ add_executable(pb_config_test Config_tests/config_test.cc $) -target_link_libraries(pb_ctags_test test_suite) -add_test(pb_ctags_test pb_ctags_test) +# add_executable(pb_ctags_test Ctags_tests/ctags_test.cc $) +# target_link_libraries(pb_ctags_test test_suite) +# add_test(pb_ctags_test pb_ctags_test) if(LIBLLDB_FOUND AND NOT DEBIAN_STRETCH_FOUND) add_executable(pb_debug_lldb_test Debug_lldb_tests/debug_lldb_test.cc $)