Skip to content

Commit

Permalink
Clean up clang-tidy
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
  • Loading branch information
mjcarroll committed Aug 9, 2023
1 parent c5b5828 commit 90f4c1f
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/Actor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
* limitations under the License.
*
*/

#include <string>
#include <utility>
#include <vector>

#include <gz/math/Pose3.hh>
#include "sdf/Actor.hh"
#include "sdf/Error.hh"
Expand Down
9 changes: 7 additions & 2 deletions src/Actor_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
*/

#include <gtest/gtest.h>

#include <cstdlib>
#include <string>
#include <utility>

#include <gz/math/Pose3.hh>
#include "sdf/Actor.hh"
#include "sdf/Plugin.hh"
Expand Down Expand Up @@ -69,8 +74,8 @@ bool TrajectoriesEqual(const sdf::Trajectory &_traj1,
}
for (uint64_t wp_idx = 0; wp_idx < _traj1.WaypointCount(); ++wp_idx)
{
auto wp1 = _traj1.WaypointByIndex(wp_idx);
auto wp2 = _traj2.WaypointByIndex(wp_idx);
const auto *wp1 = _traj1.WaypointByIndex(wp_idx);
const auto *wp2 = _traj2.WaypointByIndex(wp_idx);
waypointsEqual &= (std::abs(wp1->Time() - wp2->Time()) < EPS) &&
wp1->Pose() == wp2->Pose();
}
Expand Down
5 changes: 5 additions & 0 deletions src/AirPressure_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
*/

#include <gtest/gtest.h>

#include <memory>
#include <sstream>
#include <utility>

#include "sdf/AirPressure.hh"
#include "test_utils.hh"

Expand Down
4 changes: 4 additions & 0 deletions src/Altimeter_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
*/

#include <gtest/gtest.h>

#include <memory>
#include <utility>

#include "sdf/Altimeter.hh"
#include "test_utils.hh"

Expand Down
6 changes: 5 additions & 1 deletion src/Atmosphere_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@
*/

#include <gtest/gtest.h>

#include <sstream>
#include <utility>

#include <sdf/Atmosphere.hh>
#include <gz/math/Temperature.hh>
#include <gz/math/Vector3.hh>
#include "sdf/World.hh"
#include "test_utils.hh"

/////////////////////////////////////////////////
Expand Down
3 changes: 3 additions & 0 deletions src/Box.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* limitations under the License.
*
*/

#include <utility>

#include <gz/math/Vector3.hh>
#include "sdf/Box.hh"
#include "sdf/parser.hh"
Expand Down
3 changes: 3 additions & 0 deletions src/Box_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
*/

#include <gtest/gtest.h>

#include <sstream>

#include "sdf/Box.hh"
#include "sdf/Element.hh"
#include "test_utils.hh"
Expand Down

0 comments on commit 90f4c1f

Please sign in to comment.