Skip to content

Feature/double#281

Merged
petersteneteg merged 18 commits into
masterfrom
feature/double
Apr 27, 2026
Merged

Feature/double#281
petersteneteg merged 18 commits into
masterfrom
feature/double

Conversation

@petersteneteg
Copy link
Copy Markdown
Member

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 16, 2026

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v19.1.1) reports: 1 file(s) not formatted
  • molvis/molvisbase/src/algorithm/boundingbox.cpp
clang-tidy (v19.1.1) reports: 3 concern(s)
  • misc/nanovgpy/src/nanovgpymodule.cpp:30:10: error: [clang-diagnostic-error]

    'inviwo/nanovgpy/nanovgpymodule.h' file not found

       30 | #include <inviwo/nanovgpy/nanovgpymodule.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • molvis/molvisbase/src/algorithm/boundingbox.cpp:30:10: error: [clang-diagnostic-error]

    'inviwo/molvisbase/algorithm/boundingbox.h' file not found

       30 | #include <inviwo/molvisbase/algorithm/boundingbox.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • molvis/molvisbase/src/algorithm/boundingbox.cpp:44:22: warning: [misc-use-internal-linkage]

    function 'calcBoundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage

       44 | std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
          |                      ^              
          |                                     static 

Have any feedback or feature suggestions? Share it here.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 6cbb7d2..6724be6 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -42 +42 @@ namespace molvis {
-dmat4 boundingBox(const MolecularStructure& structure) {
+dmat4 boundingBoxstatic(const MolecularStructure& structure) {
@@ -71 +71 @@ template <typename const_iterator>
-dmat4 boundingBox(const_iterator begin, const_iterator end) {
+dmat4 boundingBoxstatic(const_iterator begin, const_iterator end) {
@@ -74,2 +74,2 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-    dvec3 worldMin(std::numeric_limits<float>::max());
-    dvec3 worldMax(std::numeric_limits<float>::lowest());
+    dvec3 worldMinstatic(std::numeric_limits<float>::max());
+    dvec3 worldMaxstatic(std::numeric_limits<float>::lowest());
@@ -101 +101 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(const MolecularStructureInport& structure) {
@@ -111 +111,2 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiInport& structures) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureMultiInport& structures) {
@@ -121 +122 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiI
-std::function<std::optional<dmat4>()> boundingBox(
+std::function<std::optional<dmat4>()> boundingBoxstatic(
@@ -132 +133,2 @@ std::function<std::optional<dmat4>()> boundingBox(
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureOutport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureOutport& structure) {

Have any feedback or feature suggestions? Share it here.

Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
@github-actions github-actions Bot dismissed their stale review April 20, 2026 09:33

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 6cbb7d2..6724be6 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -42 +42 @@ namespace molvis {
-dmat4 boundingBox(const MolecularStructure& structure) {
+dmat4 boundingBoxstatic(const MolecularStructure& structure) {
@@ -71 +71 @@ template <typename const_iterator>
-dmat4 boundingBox(const_iterator begin, const_iterator end) {
+dmat4 boundingBoxstatic(const_iterator begin, const_iterator end) {
@@ -74,2 +74,2 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-    dvec3 worldMin(std::numeric_limits<float>::max());
-    dvec3 worldMax(std::numeric_limits<float>::lowest());
+    dvec3 worldMinstatic(std::numeric_limits<float>::max());
+    dvec3 worldMaxstatic(std::numeric_limits<float>::lowest());
@@ -101 +101 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(const MolecularStructureInport& structure) {
@@ -111 +111,2 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiInport& structures) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureMultiInport& structures) {
@@ -121 +122 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiI
-std::function<std::optional<dmat4>()> boundingBox(
+std::function<std::optional<dmat4>()> boundingBoxstatic(
@@ -132 +133,2 @@ std::function<std::optional<dmat4>()> boundingBox(
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureOutport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureOutport& structure) {

Have any feedback or feature suggestions? Share it here.

Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
@github-actions github-actions Bot dismissed their stale review April 20, 2026 13:15

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 6cbb7d2..6724be6 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -42 +42 @@ namespace molvis {
-dmat4 boundingBox(const MolecularStructure& structure) {
+dmat4 boundingBoxstatic(const MolecularStructure& structure) {
@@ -71 +71 @@ template <typename const_iterator>
-dmat4 boundingBox(const_iterator begin, const_iterator end) {
+dmat4 boundingBoxstatic(const_iterator begin, const_iterator end) {
@@ -74,2 +74,2 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-    dvec3 worldMin(std::numeric_limits<float>::max());
-    dvec3 worldMax(std::numeric_limits<float>::lowest());
+    dvec3 worldMinstatic(std::numeric_limits<float>::max());
+    dvec3 worldMaxstatic(std::numeric_limits<float>::lowest());
@@ -101 +101 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(const MolecularStructureInport& structure) {
@@ -111 +111,2 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiInport& structures) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureMultiInport& structures) {
@@ -121 +122 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiI
-std::function<std::optional<dmat4>()> boundingBox(
+std::function<std::optional<dmat4>()> boundingBoxstatic(
@@ -132 +133,2 @@ std::function<std::optional<dmat4>()> boundingBox(
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureOutport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureOutport& structure) {

Have any feedback or feature suggestions? Share it here.

Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp Outdated
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
Comment thread molvis/molvisbase/src/algorithm/boundingbox.cpp
@github-actions github-actions Bot dismissed their stale review April 21, 2026 11:41

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 6cbb7d2..6724be6 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -42 +42 @@ namespace molvis {
-dmat4 boundingBox(const MolecularStructure& structure) {
+dmat4 boundingBoxstatic(const MolecularStructure& structure) {
@@ -71 +71 @@ template <typename const_iterator>
-dmat4 boundingBox(const_iterator begin, const_iterator end) {
+dmat4 boundingBoxstatic(const_iterator begin, const_iterator end) {
@@ -74,2 +74,2 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-    dvec3 worldMin(std::numeric_limits<float>::max());
-    dvec3 worldMax(std::numeric_limits<float>::lowest());
+    dvec3 worldMinstatic(std::numeric_limits<float>::max());
+    dvec3 worldMaxstatic(std::numeric_limits<float>::lowest());
@@ -101 +101 @@ dmat4 boundingBox(const_iterator begin, const_iterator end) {
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(const MolecularStructureInport& structure) {
@@ -111 +111,2 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiInport& structures) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureMultiInport& structures) {
@@ -121 +122 @@ std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiI
-std::function<std::optional<dmat4>()> boundingBox(
+std::function<std::optional<dmat4>()> boundingBoxstatic(
@@ -132 +133,2 @@ std::function<std::optional<dmat4>()> boundingBox(
-std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureOutport& structure) {
+std::function<std::optional<dmat4>()> boundingBoxstatic(
+    const MolecularStructureOutport& structure) {

Have any feedback or feature suggestions? Share it here.

namespace molvis {

mat4 boundingBox(const MolecularStructure& structure) {
dmat4 boundingBox(const MolecularStructure& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'boundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
dmat4 boundingBox(const MolecularStructure& structure) {
dmat4 boundingBoxstatic(const MolecularStructure& structure) {

template <typename const_iterator>
mat4 boundingBox(const_iterator begin, const_iterator end) {
if (begin == end) return mat4(0.0f);
dmat4 boundingBox(const_iterator begin, const_iterator end) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'boundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
dmat4 boundingBox(const_iterator begin, const_iterator end) {
dmat4 boundingBoxstatic(const_iterator begin, const_iterator end) {

Comment on lines +74 to +75
dvec3 worldMin(std::numeric_limits<float>::max());
dvec3 worldMax(std::numeric_limits<float>::lowest());
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'worldMin' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
  • function 'worldMax' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
dvec3 worldMin(std::numeric_limits<float>::max());
dvec3 worldMax(std::numeric_limits<float>::lowest());
dvec3 worldMinstatic(std::numeric_limits<float>::max());
dvec3 worldMaxstatic(std::numeric_limits<float>::lowest());

}

std::function<std::optional<mat4>()> boundingBox(const MolecularStructureInport& structure) {
std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'boundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureInport& structure) {
std::function<std::optional<dmat4>()> boundingBoxstatic(const MolecularStructureInport& structure) {

}

std::function<std::optional<mat4>()> boundingBox(const MolecularStructureMultiInport& structures) {
std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiInport& structures) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'boundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureMultiInport& structures) {
std::function<std::optional<dmat4>()> boundingBoxstatic(
const MolecularStructureMultiInport& structures) {

}

std::function<std::optional<mat4>()> boundingBox(
std::function<std::optional<dmat4>()> boundingBox(
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'boundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::function<std::optional<dmat4>()> boundingBox(
std::function<std::optional<dmat4>()> boundingBoxstatic(

}

std::function<std::optional<mat4>()> boundingBox(const MolecularStructureOutport& structure) {
std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureOutport& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'boundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::function<std::optional<dmat4>()> boundingBox(const MolecularStructureOutport& structure) {
std::function<std::optional<dmat4>()> boundingBoxstatic(
const MolecularStructureOutport& structure) {

Error: vcpkg_installed/x64-linux-dynamic/include/nanovg_gl.h:451:20: error: no match for ‘operator!=’ (operand types are ‘gl::GLint’ {aka ‘int’} and ‘const gl::GLboolean’ {aka ‘const glbinding::Boolean8’})
  451 |         if (status != GL_TRUE) {
      |             ~~~~~~ ^~ ~~~~~~~
      |             |         |
      |             |         const gl::GLboolean {aka const glbinding::Boolean8}
      |             gl::GLint {aka int}
@github-actions github-actions Bot dismissed their stale review April 23, 2026 20:53

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 8e3d29e..11476ea 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -44 +44 @@ namespace molvis {
-std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
+std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

Have any feedback or feature suggestions? Share it here.

@@ -29,6 +29,8 @@

#include <inviwo/nanovgpy/nanovgpymodule.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

misc/nanovgpy/src/nanovgpymodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/nanovgpy/nanovgpymodule.h' file not found

   30 | #include <inviwo/nanovgpy/nanovgpymodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

namespace molvis {

mat4 boundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'calcBoundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

@@ -30,16 +30,18 @@
#include <inviwo/molvisbase/algorithm/boundingbox.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

molvis/molvisbase/src/algorithm/boundingbox.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/molvisbase/algorithm/boundingbox.h' file not found

   30 | #include <inviwo/molvisbase/algorithm/boundingbox.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@github-actions github-actions Bot dismissed their stale review April 24, 2026 08:12

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 8e3d29e..11476ea 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -44 +44 @@ namespace molvis {
-std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
+std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

Have any feedback or feature suggestions? Share it here.

@@ -29,6 +29,8 @@

#include <inviwo/nanovgpy/nanovgpymodule.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

misc/nanovgpy/src/nanovgpymodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/nanovgpy/nanovgpymodule.h' file not found

   30 | #include <inviwo/nanovgpy/nanovgpymodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

namespace molvis {

mat4 boundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'calcBoundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

@@ -30,16 +30,18 @@
#include <inviwo/molvisbase/algorithm/boundingbox.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

molvis/molvisbase/src/algorithm/boundingbox.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/molvisbase/algorithm/boundingbox.h' file not found

   30 | #include <inviwo/molvisbase/algorithm/boundingbox.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@github-actions github-actions Bot dismissed their stale review April 24, 2026 14:48

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 8e3d29e..11476ea 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -44 +44 @@ namespace molvis {
-std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
+std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

Have any feedback or feature suggestions? Share it here.

@@ -29,6 +29,8 @@

#include <inviwo/nanovgpy/nanovgpymodule.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

misc/nanovgpy/src/nanovgpymodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/nanovgpy/nanovgpymodule.h' file not found

   30 | #include <inviwo/nanovgpy/nanovgpymodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

namespace molvis {

mat4 boundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'calcBoundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

@@ -30,16 +30,18 @@
#include <inviwo/molvisbase/algorithm/boundingbox.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

molvis/molvisbase/src/algorithm/boundingbox.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/molvisbase/algorithm/boundingbox.h' file not found

   30 | #include <inviwo/molvisbase/algorithm/boundingbox.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@github-actions github-actions Bot dismissed their stale review April 24, 2026 18:29

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 8e3d29e..11476ea 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -44 +44 @@ namespace molvis {
-std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
+std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

Have any feedback or feature suggestions? Share it here.

@@ -29,6 +29,8 @@

#include <inviwo/nanovgpy/nanovgpymodule.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

misc/nanovgpy/src/nanovgpymodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/nanovgpy/nanovgpymodule.h' file not found

   30 | #include <inviwo/nanovgpy/nanovgpymodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

namespace molvis {

mat4 boundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'calcBoundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

@@ -30,16 +30,18 @@
#include <inviwo/molvisbase/algorithm/boundingbox.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

molvis/molvisbase/src/algorithm/boundingbox.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/molvisbase/algorithm/boundingbox.h' file not found

   30 | #include <inviwo/molvisbase/algorithm/boundingbox.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@github-actions github-actions Bot dismissed their stale review April 25, 2026 11:04

outdated suggestion

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.1

Click here for the full clang-tidy patch
diff --git a/molvis/molvisbase/src/algorithm/boundingbox.cpp b/molvis/molvisbase/src/algorithm/boundingbox.cpp
index 8e3d29e..11476ea 100644
--- a/molvis/molvisbase/src/algorithm/boundingbox.cpp
+++ b/molvis/molvisbase/src/algorithm/boundingbox.cpp
@@ -44 +44 @@ namespace molvis {
-std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
+std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

Have any feedback or feature suggestions? Share it here.

@@ -29,6 +29,8 @@

#include <inviwo/nanovgpy/nanovgpymodule.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

misc/nanovgpy/src/nanovgpymodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/nanovgpy/nanovgpymodule.h' file not found

   30 | #include <inviwo/nanovgpy/nanovgpymodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

namespace molvis {

mat4 boundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostics

  • function 'calcBoundingBox' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage]
Suggested change
std::optional<dmat4> calcBoundingBox(const MolecularStructure& structure) {
std::optional<dmat4> calcBoundingBoxstatic(const MolecularStructure& structure) {

@@ -30,16 +30,18 @@
#include <inviwo/molvisbase/algorithm/boundingbox.h>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

molvis/molvisbase/src/algorithm/boundingbox.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/molvisbase/algorithm/boundingbox.h' file not found

   30 | #include <inviwo/molvisbase/algorithm/boundingbox.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@petersteneteg petersteneteg merged commit fb20ec4 into master Apr 27, 2026
18 checks passed
@petersteneteg petersteneteg deleted the feature/double branch April 27, 2026 06:27
github-actions Bot pushed a commit to inviwo/regression that referenced this pull request Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants