-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: master
Are you sure you want to change the base?
Feature/core changes #245
Conversation
Cpp-Linter Report
|
There was a problem hiding this 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.
molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
Outdated
Show resolved
Hide resolved
tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
Outdated
Show resolved
Hide resolved
tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
Outdated
Show resolved
Hide resolved
tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
molvis/molvisbase/include/inviwo/molvisbase/datastructures/molecularstructuretraits.h
Outdated
Show resolved
Hide resolved
tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/invariantspace.h
Outdated
Show resolved
Hide resolved
tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield2d.h
Outdated
Show resolved
Hide resolved
tensorvis/tensorvisbase/include/inviwo/tensorvisbase/datastructures/tensorfield3d.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
9b6dd59
to
983dd82
Compare
There was a problem hiding this 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)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy suggestion
} else if (auto sm = dynamic_cast<const SimpleMesh*>(&inmesh)) { | |
} else if (const auto* sm = dynamic_cast<const SimpleMesh*>(&inmesh)) { |
No description provided.