Skip to content

Commit ac7b4de

Browse files
committed
vtd: Fix clang-tidy suggestions regarding includes
1 parent ca03ade commit ac7b4de

14 files changed

+11
-29
lines changed

optional/vtd/src/osi_ground_truth.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@
2222

2323
#include "osi_ground_truth.hpp" // for OsiGroundTruth
2424

25-
#include <cloe/simulator.hpp> // for ModelError
26-
2725
#include <osi3/osi_object.pb.h> // for MovingObject
26+
#include <cloe/simulator.hpp> // for ModelError
2827

2928
namespace osii {
3029

optional/vtd/src/osi_ground_truth.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
#pragma once
2424

25-
#include <Eigen/Geometry> // for Vector3d
26-
27-
#include <cloe/simulator.hpp> // for ModelError
25+
#include <Eigen/Geometry> // for Vector3d
2826

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

30+
#include <cloe/simulator.hpp> // for ModelError
31+
3232
#include "osi_utils.hpp" // for osi_require, ..
3333

3434
namespace osii {

optional/vtd/src/osi_omni_sensor.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
#include "osi_omni_sensor.hpp"
2424

2525
#include <math.h> // for atan
26-
#include <algorithm> // for max
2726
#include <cassert> // for assert
28-
#include <map> // for map<>
2927

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

optional/vtd/src/osi_omni_sensor.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222

2323
#pragma once
2424

25-
#include <map> // for map<>
2625
#include <memory> // for shared_ptr<>, unique_ptr<>
27-
#include <string> // for string
28-
#include <utility> // for move
2926

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

@@ -43,7 +40,6 @@
4340

4441
#include "osi_ground_truth.hpp" // for OsiGroundTruth
4542
#include "osi_transceiver.hpp" // for OsiTransceiver
46-
#include "osi_utils.hpp"
4743

4844
namespace osii {
4945

optional/vtd/src/osi_transceiver.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
#pragma once
2424

25-
#include <memory> // for shared_ptr<>
26-
#include <vector> // for vector<>
27-
2825
#include <cloe/core.hpp> // for Json, Error
2926

3027
#include <osi3/osi_sensordata.pb.h> // for SensorData

optional/vtd/src/osi_transceiver_tcp.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "osi_transceiver_tcp.hpp"
2323

24-
#include <cassert> // for assert
2524
#include <cstdlib> // for malloc, free
2625
#include <memory> // for shared_ptr<>
2726

optional/vtd/src/osi_transceiver_tcp.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#pragma once
2424

2525
#include <memory> // for shared_ptr<>
26-
#include <string> // for string
2726
#include <vector> // for vector<>
2827

2928
#include <boost/asio.hpp> // for streamsize

optional/vtd/src/osi_utils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#pragma once
2424

25-
#include <string>
25+
#include <string> // for string
2626

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

optional/vtd/src/rdb_transceiver_tcp.hpp

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#pragma once
2525

2626
#include <memory> // for shared_ptr<>
27-
#include <string> // for string
2827
#include <vector> // for vector<>
2928

3029
#include <boost/asio.hpp> // for streamsize

optional/vtd/src/rdb_transceiver_tcp_test.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
*/
2222

2323
#include <iostream> // for cout
24-
#include <vector> // for vector<>
2524

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

optional/vtd/src/scp_messages.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424

2525
#include "scp_messages.hpp" // NOLINT
2626

27-
namespace vtd {
28-
namespace scp {
27+
namespace vtd::scp {
2928
// clang-format off
3029

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

190189
// clang-format on
191-
} // namespace scp
192-
} // namespace vtd
190+
} // namespace vtd::scp

optional/vtd/src/scp_messages.hpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131

3232
#include "scp_transceiver.hpp" // for ScpMessage
3333

34-
namespace vtd {
35-
namespace scp {
34+
namespace vtd::scp {
3635

3736
extern const char* Start;
3837
extern const char* Stop;
@@ -98,5 +97,4 @@ struct QueryScenario : public ScpMessage {
9897
std::string to_scp() const override;
9998
};
10099

101-
} // namespace scp
102-
} // namespace vtd
100+
} // namespace vtd::scp

optional/vtd/src/vtd_conf.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
#include <cloe/core.hpp> // for Conf, Schema
3030
#include <cloe/utility/tcp_transceiver_config.hpp> // for TcpTransceiverConfiguration, ...
31-
#include "osi_omni_sensor.hpp" // for SensorMockLevel
31+
32+
#include "osi_omni_sensor.hpp" // for SensorMockLevel
3233

3334
// Connection / Initialization
3435
#define VTD_DEFAULT_SCP_PORT 48179

optional/vtd/src/vtd_osi_test.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
#include "osi_omni_sensor.hpp"
4040
#include "osi_sensor_component.hpp" // for transform_...
41-
#include "osi_transceiver_tcp.hpp"
4241

4342
struct VehicleData {
4443
uint64_t id;

0 commit comments

Comments
 (0)