1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-18 21:23:02 +00:00

Fix clang-format and clang-tidy jobs

This commit is contained in:
Carles Fernandez 2020-06-27 11:52:59 +02:00
parent 54a4c213ec
commit a01dfa4052
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
5 changed files with 15 additions and 13 deletions

View File

@ -105,11 +105,11 @@ public:
private: private:
std::vector<gr::blocks::file_source::sptr> file_source_vec_; std::vector<gr::blocks::file_source::sptr> file_source_vec_;
#if GNURADIO_USES_STD_POINTERS #if GNURADIO_USES_STD_POINTERS
std::shared_ptr<gr::block> valve_; std::shared_ptr<gr::block> valve_;
#else #else
boost::shared_ptr<gr::block> valve_; boost::shared_ptr<gr::block> valve_;
#endif #endif
gr::blocks::file_sink::sptr sink_; gr::blocks::file_sink::sptr sink_;
std::vector<gr::blocks::throttle::sptr> throttle_vec_; std::vector<gr::blocks::throttle::sptr> throttle_vec_;
std::vector<std::string> filename_vec_; std::vector<std::string> filename_vec_;

View File

@ -105,11 +105,11 @@ public:
private: private:
gr::blocks::file_source::sptr file_source_; gr::blocks::file_source::sptr file_source_;
gr::blocks::deinterleave::sptr deint_; gr::blocks::deinterleave::sptr deint_;
#if GNURADIO_USES_STD_POINTERS #if GNURADIO_USES_STD_POINTERS
std::vector<std::shared_ptr<gr::block>> valve_vec_; std::vector<std::shared_ptr<gr::block>> valve_vec_;
#else #else
std::vector<boost::shared_ptr<gr::block>> valve_vec_; std::vector<boost::shared_ptr<gr::block>> valve_vec_;
#endif #endif
std::vector<gr::blocks::endian_swap::sptr> endian_vec_; std::vector<gr::blocks::endian_swap::sptr> endian_vec_;
std::vector<gr::blocks::null_sink::sptr> null_sinks_; std::vector<gr::blocks::null_sink::sptr> null_sinks_;
std::vector<unpack_spir_gss6450_samples_sptr> unpack_spir_vec_; std::vector<unpack_spir_gss6450_samples_sptr> unpack_spir_vec_;

View File

@ -87,7 +87,9 @@ private:
boost::thread *d_pcap_thread; boost::thread *d_pcap_thread;
boost::mutex d_mutex; boost::mutex d_mutex;
struct sockaddr_in si_me{}; struct sockaddr_in si_me
{
};
std::string d_src_device; std::string d_src_device;
std::string d_origin_address; std::string d_origin_address;
pcap_t *descr; // ethernet pcap device descriptor pcap_t *descr; // ethernet pcap device descriptor

View File

@ -134,7 +134,7 @@ public:
private: private:
cudaStream_t stream1; cudaStream_t stream1;
// cudaStream_t stream2; // cudaStream_t stream2;
// Allocate the device input vectors // Allocate the device input vectors
GPU_Complex* d_sig_in; GPU_Complex* d_sig_in;
GPU_Complex* d_nco_in; GPU_Complex* d_nco_in;

View File

@ -114,7 +114,7 @@ void GNSSFlowgraph::start()
void GNSSFlowgraph::stop() void GNSSFlowgraph::stop()
{ {
for (auto chan : channels_) for (const auto& chan : channels_)
{ {
chan->stop_channel(); // stop the acquisition or tracking operation chan->stop_channel(); // stop the acquisition or tracking operation
} }