Skip to content

Commit

Permalink
vtd: Fix clang-tidy suggestions regarding includes
Browse files Browse the repository at this point in the history
  • Loading branch information
cassava committed Feb 2, 2024
1 parent 22c239a commit 5c54412
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 29 deletions.
3 changes: 1 addition & 2 deletions optional/vtd/src/osi_ground_truth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@

#include "osi_ground_truth.hpp" // for OsiGroundTruth

#include <cloe/simulator.hpp> // for ModelError

#include <osi3/osi_object.pb.h> // for MovingObject
#include <cloe/simulator.hpp> // for ModelError

namespace osii {

Expand Down
6 changes: 3 additions & 3 deletions optional/vtd/src/osi_ground_truth.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@

#pragma once

#include <Eigen/Geometry> // for Vector3d

#include <cloe/simulator.hpp> // for ModelError
#include <Eigen/Geometry> // for Vector3d

#include <osi3/osi_groundtruth.pb.h> // for GroundTruth
#include <osi3/osi_object.pb.h> // for MovingObject

#include <cloe/simulator.hpp> // for ModelError

#include "osi_utils.hpp" // for osi_require, ..

namespace osii {
Expand Down
2 changes: 0 additions & 2 deletions optional/vtd/src/osi_omni_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
#include "osi_omni_sensor.hpp"

#include <math.h> // for atan
#include <algorithm> // for max
#include <cassert> // for assert
#include <map> // for map<>

#include <Eigen/Geometry> // for Isometry3d, Vector3d

Expand Down
4 changes: 0 additions & 4 deletions optional/vtd/src/osi_omni_sensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@

#pragma once

#include <map> // for map<>
#include <memory> // for shared_ptr<>, unique_ptr<>
#include <string> // for string
#include <utility> // for move

#include <Eigen/Geometry> // for Isometry3d, Vector3d

Expand All @@ -43,7 +40,6 @@

#include "osi_ground_truth.hpp" // for OsiGroundTruth
#include "osi_transceiver.hpp" // for OsiTransceiver
#include "osi_utils.hpp"

namespace osii {

Expand Down
3 changes: 0 additions & 3 deletions optional/vtd/src/osi_transceiver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#pragma once

#include <memory> // for shared_ptr<>
#include <vector> // for vector<>

#include <cloe/core.hpp> // for Json, Error

#include <osi3/osi_sensordata.pb.h> // for SensorData
Expand Down
1 change: 0 additions & 1 deletion optional/vtd/src/osi_transceiver_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#include "osi_transceiver_tcp.hpp"

#include <cassert> // for assert
#include <cstdlib> // for malloc, free
#include <memory> // for shared_ptr<>

Expand Down
1 change: 0 additions & 1 deletion optional/vtd/src/osi_transceiver_tcp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#pragma once

#include <memory> // for shared_ptr<>
#include <string> // for string
#include <vector> // for vector<>

#include <boost/asio.hpp> // for streamsize
Expand Down
2 changes: 1 addition & 1 deletion optional/vtd/src/osi_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#pragma once

#include <string>
#include <string> // for string

#include <Eigen/Geometry> // for Isometry3d, Vector3d

Expand Down
1 change: 0 additions & 1 deletion optional/vtd/src/rdb_transceiver_tcp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#pragma once

#include <memory> // for shared_ptr<>
#include <string> // for string
#include <vector> // for vector<>

#include <boost/asio.hpp> // for streamsize
Expand Down
1 change: 0 additions & 1 deletion optional/vtd/src/rdb_transceiver_tcp_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

#include <iostream> // for cout
#include <vector> // for vector<>

#include <boost/asio.hpp> // for error_code, endpoint, io_service, ...

Expand Down
6 changes: 2 additions & 4 deletions optional/vtd/src/scp_messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@

#include "scp_messages.hpp" // NOLINT

namespace vtd {
namespace scp {
namespace vtd::scp {
// clang-format off

const char* Start = "<SimCtrl><Start/></SimCtrl>";
Expand Down Expand Up @@ -188,5 +187,4 @@ std::string QueryScenario::to_scp() const {
}

// clang-format on
} // namespace scp
} // namespace vtd
} // namespace vtd::scp
6 changes: 2 additions & 4 deletions optional/vtd/src/scp_messages.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@

#include "scp_transceiver.hpp" // for ScpMessage

namespace vtd {
namespace scp {
namespace vtd::scp {

extern const char* Start;
extern const char* Stop;
Expand Down Expand Up @@ -98,5 +97,4 @@ struct QueryScenario : public ScpMessage {
std::string to_scp() const override;
};

} // namespace scp
} // namespace vtd
} // namespace vtd::scp
3 changes: 2 additions & 1 deletion optional/vtd/src/vtd_conf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@

#include <cloe/core.hpp> // for Conf, Schema
#include <cloe/utility/tcp_transceiver_config.hpp> // for TcpTransceiverConfiguration, ...
#include "osi_omni_sensor.hpp" // for SensorMockLevel

#include "osi_omni_sensor.hpp" // for SensorMockLevel

// Connection / Initialization
#define VTD_DEFAULT_SCP_PORT 48179
Expand Down
1 change: 0 additions & 1 deletion optional/vtd/src/vtd_osi_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@

#include "osi_omni_sensor.hpp"
#include "osi_sensor_component.hpp" // for transform_...
#include "osi_transceiver_tcp.hpp"

struct VehicleData {
uint64_t id;
Expand Down

0 comments on commit 5c54412

Please sign in to comment.