From f384536e1d7feb52538231c426de82a28fd14174 Mon Sep 17 00:00:00 2001 From: Parker L <166864283+parker-research@users.noreply.github.com> Date: Tue, 3 Dec 2024 13:30:39 -0700 Subject: [PATCH] Fix `BufferID.placeholder` static property, Doxygen docs (#1184) --- bindings/python/UtilBindings.cpp | 4 +++- docs/Doxyfile.in | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/python/UtilBindings.cpp b/bindings/python/UtilBindings.cpp index 0e9445fa4..2a008553d 100644 --- a/bindings/python/UtilBindings.cpp +++ b/bindings/python/UtilBindings.cpp @@ -57,7 +57,9 @@ void registerUtil(py::module_& m) { py::class_(m, "BufferID") .def(py::init<>()) .def_property_readonly("id", &BufferID::getId) - .def_property_readonly_static("placeholder", &BufferID::getPlaceholder) + .def_static("getPlaceholder", &BufferID::getPlaceholder) + .def_property_readonly_static( + "placeholder", [](py::object /* self or cls */) { return BufferID::getPlaceholder(); }) .def(py::self == py::self) .def(py::self != py::self) .def(py::self < py::self) diff --git a/docs/Doxyfile.in b/docs/Doxyfile.in index 760088629..fcdda96a6 100644 --- a/docs/Doxyfile.in +++ b/docs/Doxyfile.in @@ -1,5 +1,9 @@ # Doxyfile 1.9.5 +# Note that this file cloned-and-modified by the settings in CMakeLists.txt. +# Various placeholders (e.g., `@DOXYGEN_OUTPUT_DIR@`) are replaced with the +# values of the corresponding CMake variables. + # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. #