Skip to content

Commit

Permalink
Fix clang-tidy errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Sep 4, 2024
1 parent 55a0296 commit 8a1d5b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions freud/box/module-box.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

using namespace freud::box;

NB_MODULE(
_box,
module) // NOLINT(misc-use-anonymous-namespace): We have no control over nanobind module definitions.
NB_MODULE(_box, module) // NOLINT(misc-use-anonymous-namespace): caused by nanobind
{
nanobind::class_<Box>(module, "Box")
// constructors
Expand Down
4 changes: 1 addition & 3 deletions freud/locality/module-locality.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ void export_FilterSANN(nanobind::module_& module);

using namespace freud::locality::detail;

NB_MODULE(
_locality,
module) // NOLINT(misc-use-anonymous-namespace): We have no control over nanobind module definitions.
NB_MODULE(_locality, module) // NOLINT(misc-use-anonymous-namespace): caused by nanobind
{
// for using ITERATOR_TERMINATOR at the python level
module.def("get_iterator_terminator", []() { return freud::locality::ITERATOR_TERMINATOR; });
Expand Down
4 changes: 1 addition & 3 deletions freud/parallel/module-parallel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

using namespace freud::parallel;

NB_MODULE(
_parallel,
module) // NOLINT(misc-use-anonymous-namespace): We have no control over nanobind module definitions.
NB_MODULE(_parallel, module) // NOLINT(misc-use-anonymous-namespace): caused by nanobind
{
module.def("setNumThreads", &setNumThreads);
}
4 changes: 1 addition & 3 deletions freud/pmft/module-pmft.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ void export_PMFTXYT(nanobind::module_& m);

using namespace freud::pmft::detail;

NB_MODULE(
_pmft,
module) // NOLINT(misc-use-anonymous-namespace): We have no control over nanobind module definitions.
NB_MODULE(_pmft, module) // NOLINT(misc-use-anonymous-namespace): caused by nanobind
{
export_PMFT(module);
export_PMFTXY(module);
Expand Down
4 changes: 1 addition & 3 deletions freud/util/module-util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ void export_Vector(nanobind::module_& module);

using namespace freud::util::detail;

NB_MODULE(
_util,
module) // NOLINT(misc-use-anonymous-namespace): We have no control over nanobind module definitions.
NB_MODULE(_util, module) // NOLINT(misc-use-anonymous-namespace): caused by nanobind
{
export_ManagedArray(module);
export_Vector(module);
Expand Down

0 comments on commit 8a1d5b6

Please sign in to comment.