Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/core changes #245

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Feature/core changes #245

wants to merge 5 commits into from

Conversation

martinfalk
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Dec 10, 2024

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v17.0.6) reports: 5 file(s) not formatted
  • misc/vtk/include/inviwo/vtk/ports/vtkinport.h
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/datastructures/contourtreedata.h
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/datastructures/morsesmalecomplexdata.h
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/ports/persistencediagramport.h
  • vectorvis/integrallinefiltering/include/inviwo/integrallinefiltering/processors/integrallinestodataframe.h
clang-tidy (v17.0.6) reports: 10 concern(s)
  • misc/vtk/include/inviwo/vtk/ports/vtkinport.h:31:10: error: [clang-diagnostic-error]

    'inviwo/vtk/vtkmoduledefine.h' file not found

       31 | #include <inviwo/vtk/vtkmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • misc/vtk/include/inviwo/vtk/ports/vtkoutport.h:31:10: error: [clang-diagnostic-error]

    'inviwo/vtk/vtkmoduledefine.h' file not found

       31 | #include <inviwo/vtk/vtkmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/datastructures/contourtreedata.h:31:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/topologytoolkitmoduledefine.h' file not found

       31 | #include <inviwo/topologytoolkit/topologytoolkitmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/datastructures/morsesmalecomplexdata.h:31:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/topologytoolkitmoduledefine.h' file not found

       31 | #include <inviwo/topologytoolkit/topologytoolkitmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/datastructures/triangulationdata.h:33:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/topologytoolkitmoduledefine.h' file not found

       33 | #include <inviwo/topologytoolkit/topologytoolkitmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/ports/persistencediagramport.h:33:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/topologytoolkitmoduledefine.h' file not found

       33 | #include <inviwo/topologytoolkit/topologytoolkitmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/properties/topologycolorsproperty.h:31:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/topologytoolkitmoduledefine.h' file not found

       31 | #include <inviwo/topologytoolkit/topologytoolkitmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/include/inviwo/topologytoolkit/properties/topologyfilterproperty.h:31:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/topologytoolkitmoduledefine.h' file not found

       31 | #include <inviwo/topologytoolkit/topologytoolkitmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/src/properties/topologycolorsproperty.cpp:30:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/properties/topologycolorsproperty.h' file not found

       30 | #include <inviwo/topologytoolkit/properties/topologycolorsproperty.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • topovis/topologytoolkit/src/properties/topologyfilterproperty.cpp:30:10: error: [clang-diagnostic-error]

    'inviwo/topologytoolkit/properties/topologyfilterproperty.h' file not found

       30 | #include <inviwo/topologytoolkit/properties/topologyfilterproperty.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Have any feedback or feature suggestions? Share it here.

Copy link

@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 v17.0.6

Click here for the full clang-tidy patch
diff --git a/misc/graphviz/src/graphvizsettings.cpp b/misc/graphviz/src/graphvizsettings.cpp
index d7d1a69..dab66af 100644
--- a/misc/graphviz/src/graphvizsettings.cpp
+++ b/misc/graphviz/src/graphvizsettings.cpp
@@ -247 +247 @@ void GraphvizSettings::onProcessorNetworkDidAddProcessor(Processor* processor) {
-    auto meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
+    auto* meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
@@ -252 +252 @@ void GraphvizSettings::onProcessorNetworkDidRemoveProcessor(Processor* processor
-    auto meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
+    auto* meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
diff --git a/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h b/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
index e78ccbd..ff0a942 100644
--- a/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
+++ b/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
@@ -43 +43 @@ struct DataTraits<molvis::MolecularStructure> {
-    static constexpr uvec3 colorCode() { return uvec3(56, 127, 66); }
+    static constexpr uvec3 colorCode() { return {56, 127, 66}; }
diff --git a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
index 4c086f1..dd029d7 100644
--- a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
+++ b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
@@ -183 +183 @@ struct DataTraits<InvariantSpace> {
-    static constexpr uvec3 colorCode() { return uvec3(10, 150, 235); }
+    static constexpr uvec3 colorCode() { return {10, 150, 235}; }
diff --git a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
index 5c26da6..314eebb 100644
--- a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
+++ b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
@@ -177 +177 @@ struct DataTraits<TensorField2D> {
-    static constexpr uvec3 colorCode() { return uvec3(10, 150, 135); }
+    static constexpr uvec3 colorCode() { return {10, 150, 135}; }
diff --git a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
index cd32d28..e086cb2 100644
--- a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
+++ b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
@@ -362 +362 @@ struct DataTraits<TensorField3D> {
-    static constexpr uvec3 colorCode() { return uvec3(10, 150, 135); }
+    static constexpr uvec3 colorCode() { return {10, 150, 135}; }

Have any feedback or feature suggestions? Share it here.

@github-actions github-actions bot dismissed their stale review December 10, 2024 13:48

outdated suggestion

Copy link

@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 v17.0.6

Click here for the full clang-tidy patch
diff --git a/misc/graphviz/src/graphvizsettings.cpp b/misc/graphviz/src/graphvizsettings.cpp
index d7d1a69..dab66af 100644
--- a/misc/graphviz/src/graphvizsettings.cpp
+++ b/misc/graphviz/src/graphvizsettings.cpp
@@ -247 +247 @@ void GraphvizSettings::onProcessorNetworkDidAddProcessor(Processor* processor) {
-    auto meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
+    auto* meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
@@ -252 +252 @@ void GraphvizSettings::onProcessorNetworkDidRemoveProcessor(Processor* processor
-    auto meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
+    auto* meta = processor->getMetaData<ProcessorMetaData>(ProcessorMetaData::classIdentifier);
diff --git a/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h b/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
index e78ccbd..ff0a942 100644
--- a/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
+++ b/molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
@@ -43 +43 @@ struct DataTraits<molvis::MolecularStructure> {
-    static constexpr uvec3 colorCode() { return uvec3(56, 127, 66); }
+    static constexpr uvec3 colorCode() { return {56, 127, 66}; }
diff --git a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
index 4c086f1..dd029d7 100644
--- a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
+++ b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
@@ -183 +183 @@ struct DataTraits<InvariantSpace> {
-    static constexpr uvec3 colorCode() { return uvec3(10, 150, 235); }
+    static constexpr uvec3 colorCode() { return {10, 150, 235}; }
diff --git a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
index 5c26da6..314eebb 100644
--- a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
+++ b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
@@ -177 +177 @@ struct DataTraits<TensorField2D> {
-    static constexpr uvec3 colorCode() { return uvec3(10, 150, 135); }
+    static constexpr uvec3 colorCode() { return {10, 150, 135}; }
diff --git a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
index cd32d28..e086cb2 100644
--- a/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
+++ b/tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
@@ -362 +362 @@ struct DataTraits<TensorField3D> {
-    static constexpr uvec3 colorCode() { return uvec3(10, 150, 135); }
+    static constexpr uvec3 colorCode() { return {10, 150, 135}; }

Have any feedback or feature suggestions? Share it here.

github-actions[bot]
github-actions bot previously approved these changes Dec 11, 2024
Copy link

@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 v17.0.6

No concerns from clang-tidy.

Great job! 🎉

Have any feedback or feature suggestions? Share it here.

@github-actions github-actions bot dismissed their stale review December 11, 2024 11:45

outdated suggestion

Copy link

@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 v17.0.6

Click here for the full clang-tidy patch
diff --git a/misc/openmesh/src/utils/openmeshconverters.cpp b/misc/openmesh/src/utils/openmeshconverters.cpp
index 8016e44..6fba52e 100644
--- a/misc/openmesh/src/utils/openmeshconverters.cpp
+++ b/misc/openmesh/src/utils/openmeshconverters.cpp
@@ -198 +198 @@ TriMesh fromInviwo(const Mesh& inmesh, TransformCoordinates transform) {
-    } else if (auto sm = dynamic_cast<const SimpleMesh*>(&inmesh)) {
+    } else if (const auto* sm = dynamic_cast<const SimpleMesh*>(&inmesh)) {

Have any feedback or feature suggestions? Share it here.


TriMesh fromInviwo(const Mesh& inmesh, TransformCoordinates transform) {
TriMesh mesh;

if (auto bm = dynamic_cast<const BasicMesh*>(&inmesh)) {
detail::createVertexBuffers(mesh, *bm, transform);
createVertexBuffers(mesh, *bm, transform);
} else if (auto sm = dynamic_cast<const SimpleMesh*>(&inmesh)) {

Choose a reason for hiding this comment

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

clang-tidy suggestion

Suggested change
} else if (auto sm = dynamic_cast<const SimpleMesh*>(&inmesh)) {
} else if (const auto* sm = dynamic_cast<const SimpleMesh*>(&inmesh)) {

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.

3 participants