Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
a1aaed5a
Commit
a1aaed5a
authored
May 14, 2020
by
Rémi Verschelde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant void argument lists
Using clang-tidy's `modernize-redundant-void-arg`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html
parent
dcd1151d
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
33 additions
and
33 deletions
+33
-33
.clang-tidy
.clang-tidy
+1
-1
test_astar.cpp
main/tests/test_astar.cpp
+1
-1
test_ordered_hash_map.cpp
main/tests/test_ordered_hash_map.cpp
+1
-1
test_string.cpp
main/tests/test_string.cpp
+1
-1
godot_videodecoder.h
modules/gdnative/include/videodecoder/godot_videodecoder.h
+1
-1
video_stream_theora.cpp
modules/theora/video_stream_theora.cpp
+1
-1
video_stream_theora.h
modules/theora/video_stream_theora.h
+1
-1
xr_nodes.cpp
scene/3d/xr_nodes.cpp
+4
-4
xr_nodes.h
scene/3d/xr_nodes.h
+6
-6
environment.cpp
scene/resources/environment.cpp
+1
-1
environment.h
scene/resources/environment.h
+1
-1
theme.cpp
scene/resources/theme.cpp
+1
-1
theme.h
scene/resources/theme.h
+1
-1
generic_6dof_joint_3d_sw.cpp
servers/physics_3d/joints/generic_6dof_joint_3d_sw.cpp
+1
-1
generic_6dof_joint_3d_sw.h
servers/physics_3d/joints/generic_6dof_joint_3d_sw.h
+1
-1
slider_joint_3d_sw.cpp
servers/physics_3d/joints/slider_joint_3d_sw.cpp
+5
-5
slider_joint_3d_sw.h
servers/physics_3d/joints/slider_joint_3d_sw.h
+5
-5
No files found.
.clang-tidy
View file @
a1aaed5a
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,modernize-use-bool-literals,modernize-use-default-member-init,modernize-use-nullptr'
Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,modernize-
redundant-void-arg,modernize-
use-bool-literals,modernize-use-default-member-init,modernize-use-nullptr'
WarningsAsErrors: ''
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
...
...
main/tests/test_astar.cpp
View file @
a1aaed5a
...
...
@@ -352,7 +352,7 @@ bool test_solutions() {
return
true
;
}
typedef
bool
(
*
TestFunc
)(
void
);
typedef
bool
(
*
TestFunc
)();
TestFunc
test_funcs
[]
=
{
test_abc
,
...
...
main/tests/test_ordered_hash_map.cpp
View file @
a1aaed5a
...
...
@@ -130,7 +130,7 @@ bool test_const_iteration() {
return
test_const_iteration
(
map
);
}
typedef
bool
(
*
TestFunc
)(
void
);
typedef
bool
(
*
TestFunc
)();
TestFunc
test_funcs
[]
=
{
...
...
main/tests/test_string.cpp
View file @
a1aaed5a
...
...
@@ -1129,7 +1129,7 @@ bool test_35() {
return
state
;
}
typedef
bool
(
*
TestFunc
)(
void
);
typedef
bool
(
*
TestFunc
)();
TestFunc
test_funcs
[]
=
{
...
...
modules/gdnative/include/videodecoder/godot_videodecoder.h
View file @
a1aaed5a
...
...
@@ -46,7 +46,7 @@ typedef struct
void
*
next
;
void
*
(
*
constructor
)(
godot_object
*
);
void
(
*
destructor
)(
void
*
);
const
char
*
(
*
get_plugin_name
)(
void
);
const
char
*
(
*
get_plugin_name
)();
const
char
**
(
*
get_supported_extensions
)(
int
*
count
);
godot_bool
(
*
open_file
)(
void
*
,
void
*
);
// data struct, and a FileAccess pointer
godot_real
(
*
get_length
)(
const
void
*
);
...
...
modules/theora/video_stream_theora.cpp
View file @
a1aaed5a
...
...
@@ -80,7 +80,7 @@ int VideoStreamPlaybackTheora::queue_page(ogg_page *page) {
return
0
;
}
void
VideoStreamPlaybackTheora
::
video_write
(
void
)
{
void
VideoStreamPlaybackTheora
::
video_write
()
{
th_ycbcr_buffer
yuv
;
th_decode_ycbcr_out
(
td
,
yuv
);
...
...
modules/theora/video_stream_theora.h
View file @
a1aaed5a
...
...
@@ -63,7 +63,7 @@ class VideoStreamPlaybackTheora : public VideoStreamPlayback {
int
buffer_data
();
int
queue_page
(
ogg_page
*
page
);
void
video_write
(
void
);
void
video_write
();
float
get_time
()
const
;
bool
theora_eos
;
...
...
scene/3d/xr_nodes.cpp
View file @
a1aaed5a
...
...
@@ -269,11 +269,11 @@ void XRController3D::set_controller_id(int p_controller_id) {
update_configuration_warning
();
};
int
XRController3D
::
get_controller_id
(
void
)
const
{
int
XRController3D
::
get_controller_id
()
const
{
return
controller_id
;
};
String
XRController3D
::
get_controller_name
(
void
)
const
{
String
XRController3D
::
get_controller_name
()
const
{
// get our XRServer
XRServer
*
xr_server
=
XRServer
::
get_singleton
();
ERR_FAIL_NULL_V
(
xr_server
,
String
());
...
...
@@ -465,7 +465,7 @@ void XRAnchor3D::set_anchor_id(int p_anchor_id) {
update_configuration_warning
();
};
int
XRAnchor3D
::
get_anchor_id
(
void
)
const
{
int
XRAnchor3D
::
get_anchor_id
()
const
{
return
anchor_id
;
};
...
...
@@ -473,7 +473,7 @@ Vector3 XRAnchor3D::get_size() const {
return
size
;
};
String
XRAnchor3D
::
get_anchor_name
(
void
)
const
{
String
XRAnchor3D
::
get_anchor_name
()
const
{
// get our XRServer
XRServer
*
xr_server
=
XRServer
::
get_singleton
();
ERR_FAIL_NULL_V
(
xr_server
,
String
());
...
...
scene/3d/xr_nodes.h
View file @
a1aaed5a
...
...
@@ -84,8 +84,8 @@ protected:
public
:
void
set_controller_id
(
int
p_controller_id
);
int
get_controller_id
(
void
)
const
;
String
get_controller_name
(
void
)
const
;
int
get_controller_id
()
const
;
String
get_controller_name
()
const
;
int
get_joystick_id
()
const
;
bool
is_button_pressed
(
int
p_button
)
const
;
...
...
@@ -97,7 +97,7 @@ public:
bool
get_is_active
()
const
;
XRPositionalTracker
::
TrackerHand
get_hand
()
const
;
Ref
<
Mesh
>
get_mesh
(
void
)
const
;
Ref
<
Mesh
>
get_mesh
()
const
;
String
get_configuration_warning
()
const
;
...
...
@@ -125,15 +125,15 @@ protected:
public
:
void
set_anchor_id
(
int
p_anchor_id
);
int
get_anchor_id
(
void
)
const
;
String
get_anchor_name
(
void
)
const
;
int
get_anchor_id
()
const
;
String
get_anchor_name
()
const
;
bool
get_is_active
()
const
;
Vector3
get_size
()
const
;
Plane
get_plane
()
const
;
Ref
<
Mesh
>
get_mesh
(
void
)
const
;
Ref
<
Mesh
>
get_mesh
()
const
;
String
get_configuration_warning
()
const
;
...
...
scene/resources/environment.cpp
View file @
a1aaed5a
...
...
@@ -164,7 +164,7 @@ float Environment::get_ambient_light_sky_contribution() const {
return
ambient_sky_contribution
;
}
int
Environment
::
get_camera_feed_id
(
void
)
const
{
int
Environment
::
get_camera_feed_id
()
const
{
return
camera_feed_id
;
}
...
...
scene/resources/environment.h
View file @
a1aaed5a
...
...
@@ -200,7 +200,7 @@ public:
Color
get_ambient_light_color
()
const
;
float
get_ambient_light_energy
()
const
;
float
get_ambient_light_sky_contribution
()
const
;
int
get_camera_feed_id
(
void
)
const
;
int
get_camera_feed_id
()
const
;
void
set_tonemapper
(
ToneMapper
p_tone_mapper
);
ToneMapper
get_tonemapper
()
const
;
...
...
scene/resources/theme.cpp
View file @
a1aaed5a
...
...
@@ -69,7 +69,7 @@ Vector<String> Theme::_get_stylebox_list(const String &p_type) const {
return
ilret
;
}
Vector
<
String
>
Theme
::
_get_stylebox_types
(
void
)
const
{
Vector
<
String
>
Theme
::
_get_stylebox_types
()
const
{
Vector
<
String
>
ilret
;
List
<
StringName
>
il
;
...
...
scene/resources/theme.h
View file @
a1aaed5a
...
...
@@ -54,7 +54,7 @@ class Theme : public Resource {
Vector
<
String
>
_get_icon_list
(
const
String
&
p_type
)
const
;
Vector
<
String
>
_get_stylebox_list
(
const
String
&
p_type
)
const
;
Vector
<
String
>
_get_stylebox_types
(
void
)
const
;
Vector
<
String
>
_get_stylebox_types
()
const
;
Vector
<
String
>
_get_font_list
(
const
String
&
p_type
)
const
;
Vector
<
String
>
_get_color_list
(
const
String
&
p_type
)
const
;
Vector
<
String
>
_get_constant_list
(
const
String
&
p_type
)
const
;
...
...
servers/physics_3d/joints/generic_6dof_joint_3d_sw.cpp
View file @
a1aaed5a
...
...
@@ -411,7 +411,7 @@ real_t Generic6DOFJoint3DSW::getAngle(int axis_index) const {
return
m_calculatedAxisAngleDiff
[
axis_index
];
}
void
Generic6DOFJoint3DSW
::
calcAnchorPos
(
void
)
{
void
Generic6DOFJoint3DSW
::
calcAnchorPos
()
{
real_t
imA
=
A
->
get_inv_mass
();
real_t
imB
=
B
->
get_inv_mass
();
real_t
weight
;
...
...
servers/physics_3d/joints/generic_6dof_joint_3d_sw.h
View file @
a1aaed5a
...
...
@@ -389,7 +389,7 @@ public:
return
B
;
}
virtual
void
calcAnchorPos
(
void
);
// overridable
virtual
void
calcAnchorPos
();
// overridable
void
set_param
(
Vector3
::
Axis
p_axis
,
PhysicsServer3D
::
G6DOFJointAxisParam
p_param
,
real_t
p_value
);
real_t
get_param
(
Vector3
::
Axis
p_axis
,
PhysicsServer3D
::
G6DOFJointAxisParam
p_param
)
const
;
...
...
servers/physics_3d/joints/slider_joint_3d_sw.cpp
View file @
a1aaed5a
...
...
@@ -304,7 +304,7 @@ void SliderJoint3DSW::solve(real_t p_step) {
//-----------------------------------------------------------------------------
void
SliderJoint3DSW
::
calculateTransforms
(
void
)
{
void
SliderJoint3DSW
::
calculateTransforms
()
{
m_calculatedTransformA
=
A
->
get_transform
()
*
m_frameInA
;
m_calculatedTransformB
=
B
->
get_transform
()
*
m_frameInB
;
m_realPivotAInW
=
m_calculatedTransformA
.
origin
;
...
...
@@ -323,7 +323,7 @@ void SliderJoint3DSW::calculateTransforms(void) {
//-----------------------------------------------------------------------------
void
SliderJoint3DSW
::
testLinLimits
(
void
)
{
void
SliderJoint3DSW
::
testLinLimits
()
{
m_solveLinLim
=
false
;
m_linPos
=
m_depth
[
0
];
if
(
m_lowerLinLimit
<=
m_upperLinLimit
)
{
...
...
@@ -343,7 +343,7 @@ void SliderJoint3DSW::testLinLimits(void) {
//-----------------------------------------------------------------------------
void
SliderJoint3DSW
::
testAngLimits
(
void
)
{
void
SliderJoint3DSW
::
testAngLimits
()
{
m_angDepth
=
real_t
(
0.
);
m_solveAngLim
=
false
;
if
(
m_lowerAngLimit
<=
m_upperAngLimit
)
{
...
...
@@ -363,7 +363,7 @@ void SliderJoint3DSW::testAngLimits(void) {
//-----------------------------------------------------------------------------
Vector3
SliderJoint3DSW
::
getAncorInA
(
void
)
{
Vector3
SliderJoint3DSW
::
getAncorInA
()
{
Vector3
ancorInA
;
ancorInA
=
m_realPivotAInW
+
(
m_lowerLinLimit
+
m_upperLinLimit
)
*
real_t
(
0.5
)
*
m_sliderAxis
;
ancorInA
=
A
->
get_transform
().
inverse
().
xform
(
ancorInA
);
...
...
@@ -372,7 +372,7 @@ Vector3 SliderJoint3DSW::getAncorInA(void) {
//-----------------------------------------------------------------------------
Vector3
SliderJoint3DSW
::
getAncorInB
(
void
)
{
Vector3
SliderJoint3DSW
::
getAncorInB
()
{
Vector3
ancorInB
;
ancorInB
=
m_frameInB
.
origin
;
return
ancorInB
;
...
...
servers/physics_3d/joints/slider_joint_3d_sw.h
View file @
a1aaed5a
...
...
@@ -230,12 +230,12 @@ public:
bool
getSolveAngLimit
()
{
return
m_solveAngLim
;
}
real_t
getAngDepth
()
{
return
m_angDepth
;
}
// shared code used by ODE solver
void
calculateTransforms
(
void
);
void
testLinLimits
(
void
);
void
testAngLimits
(
void
);
void
calculateTransforms
();
void
testLinLimits
();
void
testAngLimits
();
// access for PE Solver
Vector3
getAncorInA
(
void
);
Vector3
getAncorInB
(
void
);
Vector3
getAncorInA
();
Vector3
getAncorInB
();
void
set_param
(
PhysicsServer3D
::
SliderJointParam
p_param
,
real_t
p_value
);
real_t
get_param
(
PhysicsServer3D
::
SliderJointParam
p_param
)
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment