1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-06 20:12:55 +00:00

Make clang-format happy

This commit is contained in:
Carles Fernandez 2022-11-24 09:12:33 +01:00
parent 0db9c2c442
commit a8e7392f4a
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
4 changed files with 63 additions and 63 deletions

View File

@ -187,7 +187,7 @@
#if !defined(CL_CALLBACK) #if !defined(CL_CALLBACK)
#define CL_CALLBACK #define CL_CALLBACK
#endif //CL_CALLBACK #endif // CL_CALLBACK
#include <iterator> #include <iterator>
#include <limits> #include <limits>
@ -4703,19 +4703,19 @@ public:
#endif // #if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
/*! \brief Class interface for GL Render Buffer Memory Objects. /*! \brief Class interface for GL Render Buffer Memory Objects.
* *
* This is provided to facilitate interoperability with OpenGL. * This is provided to facilitate interoperability with OpenGL.
* *
* See Memory for details about copy semantics, etc. * See Memory for details about copy semantics, etc.
* *
* \see Memory * \see Memory
*/ */
class BufferRenderGL : class BufferRenderGL :
#if defined(CL_VERSION_1_2) #if defined(CL_VERSION_1_2)
public ImageGL public ImageGL
#else // #if defined(CL_VERSION_1_2) #else // #if defined(CL_VERSION_1_2)
public Image2DGL public Image2DGL
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
{ {
public: public:
/*! \brief Constructs a BufferRenderGL in a specified context, from a given /*! \brief Constructs a BufferRenderGL in a specified context, from a given
@ -4748,7 +4748,7 @@ public:
BufferRenderGL() : ImageGL(){}; BufferRenderGL() : ImageGL(){};
#else // #if defined(CL_VERSION_1_2) #else // #if defined(CL_VERSION_1_2)
BufferRenderGL() : Image2DGL(){}; BufferRenderGL() : Image2DGL(){};
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
/*! \brief Constructor from cl_mem - takes ownership. /*! \brief Constructor from cl_mem - takes ownership.
* *
@ -4762,7 +4762,7 @@ public:
__CL_EXPLICIT_CONSTRUCTORS BufferRenderGL(const cl_mem& buffer) : Image2DGL(buffer) __CL_EXPLICIT_CONSTRUCTORS BufferRenderGL(const cl_mem& buffer) : Image2DGL(buffer)
{ {
} }
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
/*! \brief Assignment from cl_mem - performs shallow copy. /*! \brief Assignment from cl_mem - performs shallow copy.
@ -4775,7 +4775,7 @@ public:
ImageGL::operator=(rhs); ImageGL::operator=(rhs);
#else // #if defined(CL_VERSION_1_2) #else // #if defined(CL_VERSION_1_2)
Image2DGL::operator=(rhs); Image2DGL::operator=(rhs);
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
return *this; return *this;
} }
@ -4791,7 +4791,7 @@ public:
BufferRenderGL(const BufferRenderGL& buf) : Image2DGL(buf) BufferRenderGL(const BufferRenderGL& buf) : Image2DGL(buf)
{ {
} }
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
/*! \brief Copy assignment to forward copy to the superclass correctly. /*! \brief Copy assignment to forward copy to the superclass correctly.
* Required for MSVC. * Required for MSVC.
@ -4802,7 +4802,7 @@ public:
ImageGL::operator=(rhs); ImageGL::operator=(rhs);
#else // #if defined(CL_VERSION_1_2) #else // #if defined(CL_VERSION_1_2)
Image2DGL::operator=(rhs); Image2DGL::operator=(rhs);
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
return *this; return *this;
} }
@ -4818,7 +4818,7 @@ public:
BufferRenderGL(BufferRenderGL&& buf) CL_HPP_NOEXCEPT : Image2DGL(std::move(buf)) BufferRenderGL(BufferRenderGL&& buf) CL_HPP_NOEXCEPT : Image2DGL(std::move(buf))
{ {
} }
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
/*! \brief Move assignment to forward move to the superclass correctly. /*! \brief Move assignment to forward move to the superclass correctly.
@ -4830,7 +4830,7 @@ public:
ImageGL::operator=(std::move(buf)); ImageGL::operator=(std::move(buf));
#else // #if defined(CL_VERSION_1_2) #else // #if defined(CL_VERSION_1_2)
Image2DGL::operator=(std::move(buf)); Image2DGL::operator=(std::move(buf));
#endif //#if defined(CL_VERSION_1_2) #endif // #if defined(CL_VERSION_1_2)
return *this; return *this;
} }
@ -5066,7 +5066,7 @@ Local(::size_t size)
return ret; return ret;
} }
//class KernelFunctor; // class KernelFunctor;
/*! \brief Class interface for cl_kernel. /*! \brief Class interface for cl_kernel.
* *

View File

@ -713,7 +713,7 @@ int glonass_l2_ca_dll_pll_c_aid_tracking_cc::general_work(int noutput_items __at
d_correlation_length_samples = K_prn_samples + d_rem_code_phase_integer_samples; d_correlation_length_samples = K_prn_samples + d_rem_code_phase_integer_samples;
d_rem_code_phase_samples = d_rem_code_phase_samples - d_rem_code_phase_integer_samples; d_rem_code_phase_samples = d_rem_code_phase_samples - d_rem_code_phase_integer_samples;
//################### PLL COMMANDS ################################################# // ################### PLL COMMANDS #################################################
// carrier phase step (NCO phase increment per sample) [rads/sample] // carrier phase step (NCO phase increment per sample) [rads/sample]
d_carrier_phase_step_rad = TWO_PI * d_carrier_frequency_hz / static_cast<double>(d_fs_in); d_carrier_phase_step_rad = TWO_PI * d_carrier_frequency_hz / static_cast<double>(d_fs_in);
d_acc_carrier_phase_cycles -= d_carrier_phase_step_rad * d_correlation_length_samples / TWO_PI; d_acc_carrier_phase_cycles -= d_carrier_phase_step_rad * d_correlation_length_samples / TWO_PI;
@ -722,7 +722,7 @@ int glonass_l2_ca_dll_pll_c_aid_tracking_cc::general_work(int noutput_items __at
// remnant carrier phase [rad] // remnant carrier phase [rad]
d_rem_carrier_phase_rad = fmod(d_rem_carrier_phase_rad + TWO_PI * d_carrier_frequency_hz * CORRECTED_INTEGRATION_TIME_S, TWO_PI); d_rem_carrier_phase_rad = fmod(d_rem_carrier_phase_rad + TWO_PI * d_carrier_frequency_hz * CORRECTED_INTEGRATION_TIME_S, TWO_PI);
//################### DLL COMMANDS ################################################# // ################### DLL COMMANDS #################################################
// code phase step (Code resampler phase increment per sample) [chips/sample] // code phase step (Code resampler phase increment per sample) [chips/sample]
d_code_phase_step_chips = d_code_freq_chips / static_cast<double>(d_fs_in); d_code_phase_step_chips = d_code_freq_chips / static_cast<double>(d_fs_in);
// remnant code phase [chips] // remnant code phase [chips]

View File

@ -728,13 +728,13 @@ int Gps_L1_Ca_Gaussian_Tracking_cc::general_work(int noutput_items __attribute__
double K_blk_samples = T_prn_samples + d_rem_code_phase_samples + code_error_filt_secs * static_cast<double>(d_fs_in); double K_blk_samples = T_prn_samples + d_rem_code_phase_samples + code_error_filt_secs * static_cast<double>(d_fs_in);
d_current_prn_length_samples = static_cast<int>(round(K_blk_samples)); // round to a discrete number of samples d_current_prn_length_samples = static_cast<int>(round(K_blk_samples)); // round to a discrete number of samples
//################### NCO COMMANDS ################################################# // ################### NCO COMMANDS #################################################
// carrier phase step (NCO phase increment per sample) [rads/sample] // carrier phase step (NCO phase increment per sample) [rads/sample]
d_carrier_phase_step_rad = TWO_PI * d_carrier_doppler_hz / static_cast<double>(d_fs_in); d_carrier_phase_step_rad = TWO_PI * d_carrier_doppler_hz / static_cast<double>(d_fs_in);
// carrier phase accumulator // carrier phase accumulator
d_acc_carrier_phase_rad -= d_carrier_phase_step_rad * static_cast<double>(d_current_prn_length_samples); d_acc_carrier_phase_rad -= d_carrier_phase_step_rad * static_cast<double>(d_current_prn_length_samples);
//################### DLL COMMANDS ################################################# // ################### DLL COMMANDS #################################################
// code phase step (Code resampler phase increment per sample) [chips/sample] // code phase step (Code resampler phase increment per sample) [chips/sample]
d_code_phase_step_chips = d_code_freq_chips / static_cast<double>(d_fs_in); d_code_phase_step_chips = d_code_freq_chips / static_cast<double>(d_fs_in);
// remnant code phase [chips] // remnant code phase [chips]

View File

@ -69,7 +69,7 @@ bool FrontEndCal::read_assistance_from_XML()
int FrontEndCal::Get_SUPL_Assist() int FrontEndCal::Get_SUPL_Assist()
{ {
//######### GNSS Assistance ################################# // ######### GNSS Assistance #################################
Gnss_Sdr_Supl_Client supl_client_acquisition_; Gnss_Sdr_Supl_Client supl_client_acquisition_;
Gnss_Sdr_Supl_Client supl_client_ephemeris_; Gnss_Sdr_Supl_Client supl_client_ephemeris_;
int supl_mcc; // Current network MCC (Mobile country code), 3 digits. int supl_mcc; // Current network MCC (Mobile country code), 3 digits.