mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	Clang-format fixes
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							| @@ -44,7 +44,7 @@ jobs: | |||||||
|     - name: install dependencies |     - name: install dependencies | ||||||
|       run: brew install clang-format |       run: brew install clang-format | ||||||
|     - name: run clang-format |     - name: run clang-format | ||||||
|       run: find . -iname \*.h -o -iname \*.c -o -iname \*.cpp | xargs clang-format -style=file -i |       run: find . -iname \*.h -o -iname \*.c -o -iname \*.cc | xargs clang-format -style=file -i | ||||||
|     - name: check |     - name: check | ||||||
|       run: git diff > clang_format.patch && echo -e "if \n [ -s clang_format.patch ] \nthen \n echo "clang-format not applied:"; echo ""; more clang_format.patch; exit 1 \nfi \n" > detect && chmod +x ./detect && ./detect |       run: git diff > clang_format.patch && echo -e "if \n [ -s clang_format.patch ] \nthen \n echo "clang-format not applied:"; echo ""; more clang_format.patch; exit 1 \nfi \n" > detect && chmod +x ./detect && ./detect | ||||||
|  |  | ||||||
|   | |||||||
| @@ -81,8 +81,8 @@ pcps_opencl_acquisition_cc::pcps_opencl_acquisition_cc( | |||||||
|     bool dump, |     bool dump, | ||||||
|     const std::string &dump_filename, |     const std::string &dump_filename, | ||||||
|     bool enable_monitor_output) : gr::block("pcps_opencl_acquisition_cc", |     bool enable_monitor_output) : gr::block("pcps_opencl_acquisition_cc", | ||||||
|                                   gr::io_signature::make(1, 1, static_cast<int>(sizeof(gr_complex) * sampled_ms * samples_per_ms)), |                                       gr::io_signature::make(1, 1, static_cast<int>(sizeof(gr_complex) * sampled_ms * samples_per_ms)), | ||||||
|                                   gr::io_signature::make(0, 1, sizeof(Gnss_Synchro))) |                                       gr::io_signature::make(0, 1, sizeof(Gnss_Synchro))) | ||||||
| { | { | ||||||
|     this->message_port_register_out(pmt::mp("events")); |     this->message_port_register_out(pmt::mp("events")); | ||||||
|     d_sample_counter = 0ULL;  // SAMPLE COUNTER |     d_sample_counter = 0ULL;  // SAMPLE COUNTER | ||||||
|   | |||||||
| @@ -26,8 +26,8 @@ | |||||||
| #include "beidou_b1i_telemetry_decoder_gs.h" | #include "beidou_b1i_telemetry_decoder_gs.h" | ||||||
| #include "gnss_satellite.h"  // for Gnss_Satellite | #include "gnss_satellite.h"  // for Gnss_Satellite | ||||||
| #include "gnss_synchro.h" | #include "gnss_synchro.h" | ||||||
| #include "tlm_conf.h" |  | ||||||
| #include "telemetry_decoder_interface.h" | #include "telemetry_decoder_interface.h" | ||||||
|  | #include "tlm_conf.h" | ||||||
| #include <gnuradio/runtime_types.h>  // for basic_block_sptr, top_block_sptr | #include <gnuradio/runtime_types.h>  // for basic_block_sptr, top_block_sptr | ||||||
| #include <cstddef>                   // for size_t | #include <cstddef>                   // for size_t | ||||||
| #include <string> | #include <string> | ||||||
|   | |||||||
| @@ -24,8 +24,8 @@ | |||||||
| #include "gnss_block_interface.h" | #include "gnss_block_interface.h" | ||||||
| #include "gnss_satellite.h" | #include "gnss_satellite.h" | ||||||
| #include "gnss_synchro.h" | #include "gnss_synchro.h" | ||||||
| #include "tlm_conf.h" |  | ||||||
| #include "gps_navigation_message.h" | #include "gps_navigation_message.h" | ||||||
|  | #include "tlm_conf.h" | ||||||
| #include <boost/circular_buffer.hpp> | #include <boost/circular_buffer.hpp> | ||||||
| #include <gnuradio/block.h>  // for block | #include <gnuradio/block.h>  // for block | ||||||
| #include <gnuradio/types.h>  // for gr_vector_const_void_star | #include <gnuradio/types.h>  // for gr_vector_const_void_star | ||||||
| @@ -47,7 +47,7 @@ using gps_l1_ca_telemetry_decoder_gs_sptr = gnss_shared_ptr<gps_l1_ca_telemetry_ | |||||||
|  |  | ||||||
| gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs( | gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs( | ||||||
|     const Gnss_Satellite &satellite, |     const Gnss_Satellite &satellite, | ||||||
|     const Tlm_Conf& conf); |     const Tlm_Conf &conf); | ||||||
|  |  | ||||||
| /*! | /*! | ||||||
|  * \brief This class implements a block that decodes the NAV data defined in IS-GPS-200K |  * \brief This class implements a block that decodes the NAV data defined in IS-GPS-200K | ||||||
| @@ -69,9 +69,9 @@ public: | |||||||
| private: | private: | ||||||
|     friend gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs( |     friend gps_l1_ca_telemetry_decoder_gs_sptr gps_l1_ca_make_telemetry_decoder_gs( | ||||||
|         const Gnss_Satellite &satellite, |         const Gnss_Satellite &satellite, | ||||||
|         const Tlm_Conf& conf); |         const Tlm_Conf &conf); | ||||||
|  |  | ||||||
|     gps_l1_ca_telemetry_decoder_gs(const Gnss_Satellite &satellite, const Tlm_Conf& conf); |     gps_l1_ca_telemetry_decoder_gs(const Gnss_Satellite &satellite, const Tlm_Conf &conf); | ||||||
|  |  | ||||||
|     int32_t save_matfile() const; |     int32_t save_matfile() const; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -47,7 +47,7 @@ using gps_l2c_telemetry_decoder_gs_sptr = gnss_shared_ptr<gps_l2c_telemetry_deco | |||||||
|  |  | ||||||
| gps_l2c_telemetry_decoder_gs_sptr gps_l2c_make_telemetry_decoder_gs( | gps_l2c_telemetry_decoder_gs_sptr gps_l2c_make_telemetry_decoder_gs( | ||||||
|     const Gnss_Satellite &satellite, |     const Gnss_Satellite &satellite, | ||||||
|     const Tlm_Conf& conf); |     const Tlm_Conf &conf); | ||||||
|  |  | ||||||
| /*! | /*! | ||||||
|  * \brief This class implements a block that decodes CNAV data defined in IS-GPS-200K |  * \brief This class implements a block that decodes CNAV data defined in IS-GPS-200K | ||||||
| @@ -69,9 +69,9 @@ public: | |||||||
| private: | private: | ||||||
|     friend gps_l2c_telemetry_decoder_gs_sptr gps_l2c_make_telemetry_decoder_gs( |     friend gps_l2c_telemetry_decoder_gs_sptr gps_l2c_make_telemetry_decoder_gs( | ||||||
|         const Gnss_Satellite &satellite, |         const Gnss_Satellite &satellite, | ||||||
|         const Tlm_Conf& conf); |         const Tlm_Conf &conf); | ||||||
|  |  | ||||||
|     gps_l2c_telemetry_decoder_gs(const Gnss_Satellite &satellite, const Tlm_Conf& conf); |     gps_l2c_telemetry_decoder_gs(const Gnss_Satellite &satellite, const Tlm_Conf &conf); | ||||||
|  |  | ||||||
|     int32_t save_matfile() const; |     int32_t save_matfile() const; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -49,7 +49,7 @@ using gps_l5_telemetry_decoder_gs_sptr = gnss_shared_ptr<gps_l5_telemetry_decode | |||||||
|  |  | ||||||
| gps_l5_telemetry_decoder_gs_sptr gps_l5_make_telemetry_decoder_gs( | gps_l5_telemetry_decoder_gs_sptr gps_l5_make_telemetry_decoder_gs( | ||||||
|     const Gnss_Satellite &satellite, |     const Gnss_Satellite &satellite, | ||||||
|     const Tlm_Conf& conf); |     const Tlm_Conf &conf); | ||||||
|  |  | ||||||
| /*! | /*! | ||||||
|  * \brief This class implements a GPS L5 Telemetry decoder |  * \brief This class implements a GPS L5 Telemetry decoder | ||||||
| @@ -68,9 +68,9 @@ public: | |||||||
| private: | private: | ||||||
|     friend gps_l5_telemetry_decoder_gs_sptr gps_l5_make_telemetry_decoder_gs( |     friend gps_l5_telemetry_decoder_gs_sptr gps_l5_make_telemetry_decoder_gs( | ||||||
|         const Gnss_Satellite &satellite, |         const Gnss_Satellite &satellite, | ||||||
|         const Tlm_Conf& conf); |         const Tlm_Conf &conf); | ||||||
|  |  | ||||||
|     gps_l5_telemetry_decoder_gs(const Gnss_Satellite &satellite, const Tlm_Conf& conf); |     gps_l5_telemetry_decoder_gs(const Gnss_Satellite &satellite, const Tlm_Conf &conf); | ||||||
|  |  | ||||||
|     int32_t save_matfile() const; |     int32_t save_matfile() const; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -56,7 +56,7 @@ gnss_synchro_monitor::gnss_synchro_monitor(int n_channels, | |||||||
|     udp_sink_ptr = std::make_unique<Gnss_Synchro_Udp_Sink>(udp_addresses, udp_port, enable_protobuf); |     udp_sink_ptr = std::make_unique<Gnss_Synchro_Udp_Sink>(udp_addresses, udp_port, enable_protobuf); | ||||||
| } | } | ||||||
|  |  | ||||||
| void gnss_synchro_monitor::forecast(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required) | void gnss_synchro_monitor::forecast(int noutput_items __attribute__((unused)), gr_vector_int& ninput_items_required) | ||||||
| { | { | ||||||
|     for (int32_t channel_index = 0; channel_index < d_nchannels; channel_index++) |     for (int32_t channel_index = 0; channel_index < d_nchannels; channel_index++) | ||||||
|         { |         { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez