Skip to content

Commit 3802725

Browse files
committed
Provide a Virtual Method Anchor for Classes in Headers
Ref: https://llvm.org/docs/CodingStandards.html#provide-a-virtual-method-anchor-for-classes-in-headers Signed-off-by: Michael Carroll <[email protected]>
1 parent 305f57b commit 3802725

Some content is hidden

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

79 files changed

+899
-94
lines changed

include/gz/rendering/ArrowVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace gz
3232
public virtual CompositeVisual
3333
{
3434
/// \brief Destructor
35-
public: virtual ~ArrowVisual() { }
35+
public: virtual ~ArrowVisual();
3636

3737
/// \brief Get arrow-head visual
3838
/// \return The arrow-head visual

include/gz/rendering/AxisVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace gz
3232
public virtual CompositeVisual
3333
{
3434
/// \brief Destructor
35-
public: virtual ~AxisVisual() { }
35+
public: virtual ~AxisVisual();
3636

3737
/// \brief set true to show the axis heads, false otherwise
3838
/// \param[in] _b true to show the axis heads, false otherwise

include/gz/rendering/BoundingBoxCamera.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace gz
5555
public virtual Camera
5656
{
5757
/// \brief Destructor
58-
public: virtual ~BoundingBoxCamera() { }
58+
public: virtual ~BoundingBoxCamera();
5959

6060
/// \brief Get the BoundingBox data
6161
/// \return Buffer of bounding boxes info (label, minX, minY, maxX, maxY).

include/gz/rendering/COMVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace gz
3737
public virtual Visual
3838
{
3939
/// \brief Destructor
40-
public: virtual ~COMVisual() {}
40+
public: virtual ~COMVisual();
4141

4242
/// \brief Set the inertial component of the visual
4343
/// \param[in] _inertial Inertial component of the visual

include/gz/rendering/Camera.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace gz
5454
unsigned int, unsigned int, const std::string&)> NewFrameListener;
5555

5656
/// \brief Destructor
57-
public: virtual ~Camera() { }
57+
public: virtual ~Camera();
5858

5959
/// \brief Get the image width in pixels
6060
/// \return The image width in pixels

include/gz/rendering/Capsule.hh

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#define GZ_RENDERING_CAPSULE_HH_
2020

2121
#include "gz/rendering/config.hh"
22+
#include "gz/rendering/Export.hh"
2223
#include "gz/rendering/Geometry.hh"
2324
#include "gz/rendering/Object.hh"
2425

@@ -33,7 +34,7 @@ namespace gz
3334
public virtual Geometry
3435
{
3536
/// \brief Destructor
36-
public: virtual ~Capsule() { }
37+
public: virtual ~Capsule();
3738

3839
/// \brief Set the radius of the capsule
3940
public: virtual void SetRadius(double _radius) = 0;

include/gz/rendering/CompositeVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace gz
3333
public virtual Visual
3434
{
3535
/// \brief Destructor
36-
public: virtual ~CompositeVisual() { }
36+
public: virtual ~CompositeVisual();
3737
};
3838
}
3939
}

include/gz/rendering/DepthCamera.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace gz
3939
unsigned int, unsigned int, const std::string&)> NewFrameListener;
4040

4141
/// \brief Destructor
42-
public: virtual ~DepthCamera() { }
42+
public: virtual ~DepthCamera();
4343

4444
/// \brief Create a texture which will hold the depth data
4545
public: virtual void CreateDepthTexture() = 0;

include/gz/rendering/Geometry.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace gz
3636
public virtual Object
3737
{
3838
/// \brief Destructor
39-
public: virtual ~Geometry() { }
39+
public: virtual ~Geometry();
4040

4141
/// \brief Determine if this Geometry is attached to a Visual
4242
/// \return True if this Geometry has a parent Visual

include/gz/rendering/GizmoVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace gz
3535
public virtual CompositeVisual
3636
{
3737
/// \brief Destructor
38-
public: virtual ~GizmoVisual() { }
38+
public: virtual ~GizmoVisual();
3939

4040
/// \brief Set the transform mode of the gizmo. This controls the visual
4141
/// appearance of the gizmo. Only the visuals in the specified mode will

include/gz/rendering/GpuRays.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace gz
4242
unsigned int, unsigned int, const std::string&)> NewFrameListener;
4343

4444
/// \brief Destructor
45-
public: virtual ~GpuRays() { }
45+
public: virtual ~GpuRays();
4646

4747
/// \brief All things needed to get back z buffer for gpu rays data.
4848
/// \return Array of gpu rays data.

include/gz/rendering/Grid.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace gz
3535
public virtual Geometry
3636
{
3737
/// \brief Destructor
38-
public: virtual ~Grid() { }
38+
public: virtual ~Grid() = 0;
3939

4040
/// \brief Set the number of cells on a planar grid
4141
/// \param[in] _count The number of cells

include/gz/rendering/InertiaVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace gz
3636
public virtual Visual
3737
{
3838
/// \brief Destructor
39-
public: virtual ~InertiaVisual() {}
39+
public: virtual ~InertiaVisual();
4040

4141
/// \brief Set the inertial component of the visual
4242
/// \param[in] _inertial Inertial component of the visual

include/gz/rendering/JointVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace gz
7070
public virtual Visual
7171
{
7272
/// \brief Destructor
73-
public: virtual ~JointVisual() {}
73+
public: virtual ~JointVisual();
7474

7575
/// \brief Create an axis and attach it to the joint visual.
7676
/// \param[in] _axis Axis vector.

include/gz/rendering/Light.hh

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace gz
3333
public virtual Node
3434
{
3535
/// \brief Destructor
36-
public: virtual ~Light() { }
36+
public: virtual ~Light();
3737

3838
/// \brief Get the diffuse color
3939
/// \return The diffuse color
@@ -122,7 +122,7 @@ namespace gz
122122
public virtual Light
123123
{
124124
/// \brief Destructor
125-
public: virtual ~DirectionalLight() { }
125+
public: virtual ~DirectionalLight();
126126

127127
/// \brief Get the direction of the light
128128
/// \return The direction of the light
@@ -145,7 +145,7 @@ namespace gz
145145
public virtual Light
146146
{
147147
/// \brief Destructor
148-
public: virtual ~PointLight() { }
148+
public: virtual ~PointLight();
149149
};
150150

151151
/// \class SpotLight Light.hh gz/rendering/Light.hh
@@ -154,7 +154,7 @@ namespace gz
154154
public virtual Light
155155
{
156156
/// \brief Destructor
157-
public: virtual ~SpotLight() { }
157+
public: virtual ~SpotLight();
158158

159159
/// \brief Get direction of the light
160160
/// \return The direction of the light

include/gz/rendering/LightVisual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace gz
5050
public virtual Visual
5151
{
5252
/// \brief Descructor
53-
public: virtual ~LightVisual() {}
53+
public: virtual ~LightVisual();
5454

5555
/// \brief set type of the light
5656
/// \param[in] _type type of the light

include/gz/rendering/Material.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace gz
4949
public virtual Object
5050
{
5151
/// \brief Destructor
52-
public: virtual ~Material() { }
52+
public: virtual ~Material();
5353

5454
/// \brief Determine if lighting affects this material
5555
/// \return True if lighting affects this material

include/gz/rendering/Mesh.hh

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace gz
3838
public virtual Geometry
3939
{
4040
/// \brief Destructor
41-
public: virtual ~Mesh() { }
41+
public: virtual ~Mesh();
4242

4343
/// \brief Check whether the mesh has skeleton
4444
/// \return True if the mesh has skeleton
@@ -136,7 +136,7 @@ namespace gz
136136
public virtual Object
137137
{
138138
/// \brief Destructor
139-
public: virtual ~SubMesh() { }
139+
public: virtual ~SubMesh();
140140

141141
/// \brief Get the currently assigned material
142142
/// \return The currently assigned material

include/gz/rendering/Node.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace gz
5252
public virtual Object
5353
{
5454
/// \brief Destructor
55-
public: virtual ~Node() { }
55+
public: virtual ~Node();
5656

5757
/// \brief Determine if this Node is attached to another Node.
5858
/// \return True if this Node has a parent Node

include/gz/rendering/Object.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace gz
3434
class GZ_RENDERING_VISIBLE Object
3535
{
3636
/// \brief Destructor
37-
public: virtual ~Object() { }
37+
public: virtual ~Object();
3838

3939
/// \brief Get the object ID. This ID will be unique across all objects
4040
/// inside a given scene, but necessarily true for objects across

include/gz/rendering/ParticleEmitter.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace gz
5959
public virtual Visual
6060
{
6161
/// \brief Destructor
62-
public: virtual ~ParticleEmitter() {}
62+
public: virtual ~ParticleEmitter();
6363

6464
/// \brief \brief Get the emitter type.
6565
/// \return Emitter type.

include/gz/rendering/RayQuery.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace gz
6464
: public virtual Object
6565
{
6666
/// \brief Destructor
67-
public: virtual ~RayQuery() { }
67+
public: virtual ~RayQuery();
6868

6969
/// \brief Set ray origin
7070
/// \param[in] _origin Ray origin

include/gz/rendering/RenderEngine.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace gz
3737
class GZ_RENDERING_VISIBLE RenderEngine
3838
{
3939
/// \brief Destructor
40-
public: virtual ~RenderEngine() { }
40+
public: virtual ~RenderEngine();
4141

4242
/// \brief Load any necessary resources to set up render-engine. This
4343
/// should called before any other function.

include/gz/rendering/RenderPass.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace gz
3535
: public virtual Object
3636
{
3737
/// \brief Destructor
38-
public: virtual ~RenderPass() { }
38+
public: virtual ~RenderPass();
3939

4040
/// \brief Set to enable or disable the render pass
4141
/// \param[in] _enabled True to enable the render pass, false to disable.

include/gz/rendering/RenderTarget.hh

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace gz
3838
public virtual Object
3939
{
4040
/// \brief Destructor
41-
public: virtual ~RenderTarget() { }
41+
public: virtual ~RenderTarget();
4242

4343
/// \brief Get render target width in pixels
4444
/// \return The render target width in pixels
@@ -104,7 +104,7 @@ namespace gz
104104
public virtual RenderTarget
105105
{
106106
/// \brief Destructor
107-
public: virtual ~RenderTexture() { }
107+
public: virtual ~RenderTexture();
108108

109109
/// \brief Returns the OpenGL texture Id. A valid Id is returned only
110110
// if this is an OpenGL render texture
@@ -127,7 +127,7 @@ namespace gz
127127
public virtual RenderTarget
128128
{
129129
/// \brief Destructor
130-
public: virtual ~RenderWindow() { }
130+
public: virtual ~RenderWindow();
131131

132132
/// \brief Get the window handle that the render window is attached to.
133133
/// \return Window handle

include/gz/rendering/Scene.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace gz
4848
class GZ_RENDERING_VISIBLE Scene
4949
{
5050
/// \brief Destructor
51-
public: virtual ~Scene() { }
51+
public: virtual ~Scene();
5252

5353
/// \brief Load scene-specific resources
5454
public: virtual void Load() = 0;

include/gz/rendering/SegmentationCamera.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace gz
5252
public virtual Camera
5353
{
5454
/// \brief Destructor
55-
public: virtual ~SegmentationCamera() { }
55+
public: virtual ~SegmentationCamera();
5656

5757
/// \brief Create a texture which will hold the segmentation data
5858
public: virtual void CreateSegmentationTexture() = 0;

include/gz/rendering/Sensor.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace gz
3333
public virtual Node
3434
{
3535
/// \brief Sensor
36-
public: virtual ~Sensor() { }
36+
public: virtual ~Sensor();
3737

3838
/// \brief Set visibility mask
3939
/// \param[in] _mask Visibility mask

include/gz/rendering/Storage.hh

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace gz
5757
typedef std::shared_ptr<const T> ConstTPtr;
5858

5959
/// \brief Destructor
60-
public: virtual ~Map() { }
60+
public: virtual ~Map() = default;
6161

6262
/// \brief Get the number of elements in this map
6363
/// \return The number of elements in this map
@@ -122,7 +122,7 @@ namespace gz
122122
typedef std::shared_ptr<const T> ConstTPtr;
123123

124124
/// \brief Destructor
125-
public: virtual ~Store() { }
125+
public: virtual ~Store() = default;
126126

127127
/// \brief Get number of elements in this store
128128
/// \return The number of elements in this store
@@ -244,7 +244,7 @@ namespace gz
244244
typedef std::shared_ptr<const TStore> ConstTStorePtr;
245245

246246
/// \brief Destructor
247-
public: virtual ~CompositeStore() { }
247+
public: virtual ~CompositeStore() = default;
248248

249249
/// \brief Get number of Stores
250250
/// \return The number of Stores
@@ -291,7 +291,7 @@ namespace gz
291291
class GZ_RENDERING_VISIBLE StoreWrapper :
292292
public Store<T>
293293
{
294-
public: virtual ~StoreWrapper() { }
294+
public: virtual ~StoreWrapper() = default;
295295
};
296296

297297
// armhf failed to build with this code. It can not be removed for the rest

include/gz/rendering/Text.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace gz
6666
public: Text() = default;
6767

6868
/// \brief Destructor
69-
public: virtual ~Text() = default;
69+
public: virtual ~Text();
7070

7171
/// \brief Set the font.
7272
/// \param[in] _font Name of the font

include/gz/rendering/ThermalCamera.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace gz
4141
public virtual Camera
4242
{
4343
/// \brief Destructor
44-
public: virtual ~ThermalCamera() { }
44+
public: virtual ~ThermalCamera();
4545

4646
/// \brief Set the ambient temperature of the environment
4747
/// \param[in] _ambient Ambient temperature in kelvin

include/gz/rendering/ViewController.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace gz
3535
class GZ_RENDERING_VISIBLE ViewController
3636
{
3737
/// \brief Destructor
38-
public: virtual ~ViewController() { }
38+
public: virtual ~ViewController();
3939

4040
/// \brief Set the camera that will be controlled by this view controller.
4141
/// \param[in] _camera Camera to control

include/gz/rendering/Visual.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace gz
3434
public virtual Node
3535
{
3636
/// \brief Destructor
37-
public: virtual ~Visual() { }
37+
public: virtual ~Visual();
3838

3939
/// \brief Get the number of geometries attached to this visual
4040
/// \return The number of geometries attached to this visual

include/gz/rendering/WideAngleCamera.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace gz
3838
public virtual Camera
3939
{
4040
/// \brief Destructor
41-
public: virtual ~WideAngleCamera() { }
41+
public: virtual ~WideAngleCamera();
4242

4343
/// \brief Set the camera lens to use for this wide angle camera
4444
/// \param[in] _lens Camera lens to set

0 commit comments

Comments
 (0)