Skip to content

Commit 3083464

Browse files
Merge pull request #107 from Geode-solutions/fix/nodiscard
fix(OpenGeode): update to new warnings
2 parents 740238c + c452b39 commit 3083464

File tree

54 files changed

+249
-206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+249
-206
lines changed

bindings/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
5-
# pip-compile bindings/python/requirements.in
5+
# pip-compile --pre bindings/python/requirements.in
66
#
77
opengeode-core==15.*,>=15.4.1
88
# via -r bindings/python/requirements.in

include/geode/inspector/brep_inspector.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ namespace geode
4040
BRepMeshesInspectionResult meshes;
4141
BRepTopologyInspectionResult topology;
4242

43-
std::string string() const;
43+
[[nodiscard]] std::string string() const;
4444

45-
std::string inspection_type() const;
45+
[[nodiscard]] std::string inspection_type() const;
4646
};
4747
/*!
4848
* Class for inspecting a BRep model
@@ -58,6 +58,6 @@ namespace geode
5858
public:
5959
explicit BRepInspector( const BRep& brep );
6060

61-
BRepInspectionResult inspect_brep() const;
61+
[[nodiscard]] BRepInspectionResult inspect_brep() const;
6262
};
6363
} // namespace geode

include/geode/inspector/criterion/adjacency/brep_meshes_adjacency.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ namespace geode
5252
"BRep Block mesh with wrong adjacencies on polyhedron facets"
5353
};
5454

55-
std::string string() const;
55+
[[nodiscard]] std::string string() const;
5656

57-
std::string inspection_type() const;
57+
[[nodiscard]] std::string inspection_type() const;
5858
};
5959

6060
/*!
@@ -70,7 +70,7 @@ namespace geode
7070

7171
~BRepComponentMeshesAdjacency();
7272

73-
BRepMeshesAdjacencyInspectionResult
73+
[[nodiscard]] BRepMeshesAdjacencyInspectionResult
7474
inspect_brep_meshes_adjacencies() const;
7575

7676
private:

include/geode/inspector/criterion/adjacency/section_meshes_adjacency.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ namespace geode
4848
"Section Surface mesh with wrong adjacencies on polygon edges"
4949
};
5050

51-
std::string string() const;
51+
[[nodiscard]] std::string string() const;
5252

53-
std::string inspection_type() const;
53+
[[nodiscard]] std::string inspection_type() const;
5454
};
5555
/*!
5656
* Class for inspecting the adjacency of the surface edges in the Component
@@ -65,7 +65,7 @@ namespace geode
6565

6666
~SectionComponentMeshesAdjacency();
6767

68-
SectionMeshesAdjacencyInspectionResult
68+
[[nodiscard]] SectionMeshesAdjacencyInspectionResult
6969
inspect_section_meshes_adjacencies() const;
7070

7171
private:

include/geode/inspector/criterion/adjacency/solid_adjacency.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ namespace geode
4949

5050
~SolidMeshAdjacency();
5151

52-
bool mesh_has_wrong_adjacencies() const;
52+
[[nodiscard]] bool mesh_has_wrong_adjacencies() const;
5353

54-
InspectionIssues< PolyhedronFacet >
54+
[[nodiscard]] InspectionIssues< PolyhedronFacet >
5555
polyhedron_facets_with_wrong_adjacency() const;
5656

5757
private:

include/geode/inspector/criterion/adjacency/surface_adjacency.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ namespace geode
4949

5050
~SurfaceMeshAdjacency();
5151

52-
bool mesh_has_wrong_adjacencies() const;
52+
[[nodiscard]] bool mesh_has_wrong_adjacencies() const;
5353

54-
InspectionIssues< PolygonEdge >
54+
[[nodiscard]] InspectionIssues< PolygonEdge >
5555
polygon_edges_with_wrong_adjacency() const;
5656

5757
private:

include/geode/inspector/criterion/brep_meshes_inspector.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ namespace geode
4444
BRepMeshesManifoldInspectionResult meshes_non_manifolds;
4545
BRepMeshesNegativeElementsInspectionResult meshes_negative_elements;
4646

47-
std::string string() const;
47+
[[nodiscard]] std::string string() const;
4848

49-
std::string inspection_type() const;
49+
[[nodiscard]] std::string inspection_type() const;
5050
};
5151

5252
/*!
@@ -67,6 +67,6 @@ namespace geode
6767
public:
6868
explicit BRepMeshesInspector( const BRep& brep );
6969

70-
BRepMeshesInspectionResult inspect_brep_meshes() const;
70+
[[nodiscard]] BRepMeshesInspectionResult inspect_brep_meshes() const;
7171
};
7272
} // namespace geode

include/geode/inspector/criterion/colocation/component_meshes_colocation.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ namespace geode
4444
"Model component meshes with colocated points"
4545
};
4646

47-
std::string string() const;
47+
[[nodiscard]] std::string string() const;
4848

49-
std::string inspection_type() const;
49+
[[nodiscard]] std::string inspection_type() const;
5050
};
5151

5252
/*!
@@ -63,7 +63,7 @@ namespace geode
6363

6464
~ComponentMeshesColocation();
6565

66-
MeshesColocationInspectionResult
66+
[[nodiscard]] MeshesColocationInspectionResult
6767
inspect_meshes_point_colocations() const;
6868

6969
private:

include/geode/inspector/criterion/colocation/edgedcurve_colocation.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ namespace geode
4848

4949
~EdgedCurveColocation();
5050

51-
bool mesh_has_colocated_points() const;
51+
[[nodiscard]] bool mesh_has_colocated_points() const;
5252

53-
InspectionIssues< std::vector< index_t > >
53+
[[nodiscard]] InspectionIssues< std::vector< index_t > >
5454
colocated_points_groups() const;
5555

5656
private:

include/geode/inspector/criterion/colocation/pointset_colocation.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ namespace geode
4848

4949
~PointSetColocation();
5050

51-
bool mesh_has_colocated_points() const;
51+
[[nodiscard]] bool mesh_has_colocated_points() const;
5252

53-
InspectionIssues< std::vector< index_t > >
53+
[[nodiscard]] InspectionIssues< std::vector< index_t > >
5454
colocated_points_groups() const;
5555

5656
private:

0 commit comments

Comments
 (0)