Skip to content

Feature/core updates etc - #287

Merged
petersteneteg merged 4 commits into
masterfrom
feature/core-updates-etc
Sep 1, 2026
Merged

Feature/core updates etc#287
petersteneteg merged 4 commits into
masterfrom
feature/core-updates-etc

Conversation

@petersteneteg

Copy link
Copy Markdown
Member

No description provided.

# Conflicts:
#	misc/graphviz/src/graphvizsettings.cpp
#	misc/vtk/src/processors/volumetovtk.cpp
#	tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
@github-actions

Copy link
Copy Markdown

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v19.1.7) reports: 1 file(s) not formatted
  • misc/vtk/include/inviwo/vtk/ports/vtkinport.h
clang-tidy (v19.1.7) reports: 3 concern(s)
  • misc/graphviz/src/graphvizsettings.cpp:162:37: warning: [cppcoreguidelines-pro-type-const-cast]

    do not use const_cast to remove const qualifier

      162 |             if (auto* n = agnode(G, const_cast<char*>(SafeCStr{p->getIdentifier()}.c_str()), 0)) {
          |                                     ^
  • misc/graphviz/src/graphvizsettings.cpp:177:33: warning: [cppcoreguidelines-pro-type-const-cast]

    do not use const_cast to remove const qualifier

      177 |         if (auto* n = agnode(G, const_cast<char*>(SafeCStr{p->getIdentifier()}.c_str()), 0)) {
          |                                 ^
  • misc/vtk/src/ports/vtkinport.cpp:190:5: warning: [misc-const-correctness]

    variable 'portsToRemove' of type 'std::vector<VtkOutport *>' can be declared 'const'

      190 |     std::vector<VtkOutport*> portsToRemove =
          |     ^
          |                              const 

Have any feedback or feature suggestions? Share it here.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

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.7

Click here for the full clang-tidy patch
diff --git a/misc/vtk/src/ports/vtkinport.cpp b/misc/vtk/src/ports/vtkinport.cpp
index 1b85019..e9c4006 100644
--- a/misc/vtk/src/ports/vtkinport.cpp
+++ b/misc/vtk/src/ports/vtkinport.cpp
@@ -190 +190 @@ void VtkInport::setTypeId(int typeId) {
-    std::vector<VtkOutport*> portsToRemove =
+    const std::vector<VtkOutport*> portsToRemove =

Have any feedback or feature suggestions? Share it here.

net->forEachProcessor([&](Processor* p) {
const std::string identifier{p->getIdentifier()};
if (auto* n = agnode(G, const_cast<char*>(identifier.c_str()), 0)) {
if (auto* n = agnode(G, const_cast<char*>(SafeCStr{p->getIdentifier()}.c_str()), 0)) {

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/graphviz/src/graphvizsettings.cpp:162:37: warning: [cppcoreguidelines-pro-type-const-cast]

do not use const_cast to remove const qualifier

  162 |             if (auto* n = agnode(G, const_cast<char*>(SafeCStr{p->getIdentifier()}.c_str()), 0)) {
      |                                     ^

net->forEachProcessor([&](Processor* p) {
const std::string identifier{p->getIdentifier()};
if (auto* n = agnode(G, const_cast<char*>(identifier.c_str()), 0)) {
if (auto* n = agnode(G, const_cast<char*>(SafeCStr{p->getIdentifier()}.c_str()), 0)) {

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/graphviz/src/graphvizsettings.cpp:177:33: warning: [cppcoreguidelines-pro-type-const-cast]

do not use const_cast to remove const qualifier

  177 |         if (auto* n = agnode(G, const_cast<char*>(SafeCStr{p->getIdentifier()}.c_str()), 0)) {
      |                                 ^

typeId_ = typeId;
std::vector<Outport*> portsToRemove =
util::copy_if(connectedOutports_, [&](auto port) { return !canConnectTo(port); });
std::vector<VtkOutport*> portsToRemove =

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

  • variable 'portsToRemove' of type 'std::vector<VtkOutport *>' can be declared 'const' [misc-const-correctness]
Suggested change
std::vector<VtkOutport*> portsToRemove =
const std::vector<VtkOutport*> portsToRemove =

@petersteneteg
petersteneteg merged commit e60880f into master Sep 1, 2026
33 of 35 checks passed
@petersteneteg
petersteneteg deleted the feature/core-updates-etc branch September 1, 2026 12:03
github-actions Bot pushed a commit to inviwo/regression that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants