From af993e907b56dba47ae44c355399066dd151e947 Mon Sep 17 00:00:00 2001
From: Carles Fernandez <carles.fernandez@gmail.com>
Date: Thu, 7 May 2020 12:13:49 +0200
Subject: [PATCH] Make clang-tidy happy (readability-identifier-naming filter)

---
 src/algorithms/libs/beidou_b1i_signal_processing.cc | 4 ++--
 src/algorithms/libs/beidou_b3i_signal_processing.cc | 4 ++--
 src/algorithms/libs/glonass_l1_signal_processing.cc | 4 ++--
 src/algorithms/libs/glonass_l2_signal_processing.cc | 4 ++--
 src/algorithms/libs/gnss_signal_processing.cc       | 6 +++---
 src/algorithms/libs/gps_sdr_signal_processing.cc    | 4 ++--
 6 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/algorithms/libs/beidou_b1i_signal_processing.cc b/src/algorithms/libs/beidou_b1i_signal_processing.cc
index 2f9908659..d19ef8b68 100644
--- a/src/algorithms/libs/beidou_b1i_signal_processing.cc
+++ b/src/algorithms/libs/beidou_b1i_signal_processing.cc
@@ -24,7 +24,7 @@
 #include <bitset>
 #include <string>
 
-const auto auxCeil = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
+const auto AUX_CEIL = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
 
 void beidou_b1i_code_gen_int(gsl::span<int32_t> _dest, int32_t _prn, uint32_t _chip_shift)
 {
@@ -163,7 +163,7 @@ void beidou_b1i_code_gen_complex_sampled(gsl::span<std::complex<float>> _dest, u
             // millisecond).
 
             aux = (_ts * (i + 1)) / _tc;
-            _codeValueIndex = auxCeil(aux) - 1;
+            _codeValueIndex = AUX_CEIL(aux) - 1;
 
             // --- Make the digitized version of the C/A code ------------------
             // The "upsampled" code is made by selecting values form the CA code
diff --git a/src/algorithms/libs/beidou_b3i_signal_processing.cc b/src/algorithms/libs/beidou_b3i_signal_processing.cc
index 342872f50..ffceaf55b 100644
--- a/src/algorithms/libs/beidou_b3i_signal_processing.cc
+++ b/src/algorithms/libs/beidou_b3i_signal_processing.cc
@@ -24,7 +24,7 @@
 #include <bitset>
 #include <string>
 
-const auto auxCeil = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
+const auto AUX_CEIL = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
 
 void beidou_b3i_code_gen_int(gsl::span<int> _dest, int32_t _prn, uint32_t _chip_shift)
 {
@@ -226,7 +226,7 @@ void beidou_b3i_code_gen_complex_sampled(gsl::span<std::complex<float>> _dest, u
             // millisecond).
 
             aux = (_ts * (i + 1)) / _tc;
-            _codeValueIndex = auxCeil(aux) - 1;
+            _codeValueIndex = AUX_CEIL(aux) - 1;
 
             // --- Make the digitized version of the C/A code ------------------
             // The "upsampled" code is made by selecting values form the CA code
diff --git a/src/algorithms/libs/glonass_l1_signal_processing.cc b/src/algorithms/libs/glonass_l1_signal_processing.cc
index bd23d6f02..aaa569cd7 100644
--- a/src/algorithms/libs/glonass_l1_signal_processing.cc
+++ b/src/algorithms/libs/glonass_l1_signal_processing.cc
@@ -23,7 +23,7 @@
 #include <array>
 #include <bitset>
 
-const auto auxCeil = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
+const auto AUX_CEIL = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
 
 void glonass_l1_ca_code_gen_complex(gsl::span<std::complex<float>> _dest, uint32_t _chip_shift)
 {
@@ -122,7 +122,7 @@ void glonass_l1_ca_code_gen_complex_sampled(gsl::span<std::complex<float>> _dest
             // millisecond).
 
             aux = (_ts * (i + 1)) / _tc;
-            _codeValueIndex = auxCeil(aux) - 1;
+            _codeValueIndex = AUX_CEIL(aux) - 1;
 
             // --- Make the digitized version of the C/A code ------------------
             // The "upsampled" code is made by selecting values form the CA code
diff --git a/src/algorithms/libs/glonass_l2_signal_processing.cc b/src/algorithms/libs/glonass_l2_signal_processing.cc
index c8a02c871..47e09c811 100644
--- a/src/algorithms/libs/glonass_l2_signal_processing.cc
+++ b/src/algorithms/libs/glonass_l2_signal_processing.cc
@@ -23,7 +23,7 @@
 #include <array>
 #include <bitset>
 
-const auto auxCeil = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
+const auto AUX_CEIL = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
 
 void glonass_l2_ca_code_gen_complex(gsl::span<std::complex<float>> _dest, uint32_t _chip_shift)
 {
@@ -122,7 +122,7 @@ void glonass_l2_ca_code_gen_complex_sampled(gsl::span<std::complex<float>> _dest
             // millisecond).
 
             aux = (_ts * (i + 1)) / _tc;
-            _codeValueIndex = auxCeil(aux) - 1;
+            _codeValueIndex = AUX_CEIL(aux) - 1;
 
             // --- Make the digitized version of the C/A code ------------------
             // The "upsampled" code is made by selecting values form the CA code
diff --git a/src/algorithms/libs/gnss_signal_processing.cc b/src/algorithms/libs/gnss_signal_processing.cc
index e0d75f236..32770d853 100644
--- a/src/algorithms/libs/gnss_signal_processing.cc
+++ b/src/algorithms/libs/gnss_signal_processing.cc
@@ -26,7 +26,7 @@
 #include <cstddef>  // for size_t
 
 
-const auto auxCeil2 = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
+const auto AUX_CEIL2 = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
 
 void complex_exp_gen(gsl::span<std::complex<float>> _dest, double _f, double _fs)
 {
@@ -163,7 +163,7 @@ void resampler(const gsl::span<float> _from, gsl::span<float> _dest, float _fs_i
             // === Digitizing ==================================================
             // --- compute index array to read sampled values ------------------
             aux = (_t_out * (i + 1)) / _t_in;
-            _codeValueIndex = auxCeil2(aux) - 1;
+            _codeValueIndex = AUX_CEIL2(aux) - 1;
 
             // if repeat the chip -> upsample by nearest neighborhood interpolation
             _dest[i] = _from[_codeValueIndex];
@@ -186,7 +186,7 @@ void resampler(gsl::span<const std::complex<float>> _from, gsl::span<std::comple
             // === Digitizing ==================================================
             // --- compute index array to read sampled values ------------------
             aux = (_t_out * (i + 1)) / _t_in;
-            _codeValueIndex = auxCeil2(aux) - 1;
+            _codeValueIndex = AUX_CEIL2(aux) - 1;
 
             // if repeat the chip -> upsample by nearest neighborhood interpolation
             _dest[i] = _from[_codeValueIndex];
diff --git a/src/algorithms/libs/gps_sdr_signal_processing.cc b/src/algorithms/libs/gps_sdr_signal_processing.cc
index d28e5c4b0..4be8b6d4a 100644
--- a/src/algorithms/libs/gps_sdr_signal_processing.cc
+++ b/src/algorithms/libs/gps_sdr_signal_processing.cc
@@ -23,7 +23,7 @@
 #include <array>
 #include <bitset>
 
-const auto auxCeil = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
+const auto AUX_CEIL = [](float x) { return static_cast<int32_t>(static_cast<int64_t>((x) + 1)); };
 
 void gps_l1_ca_code_gen_int(gsl::span<int32_t> _dest, int32_t _prn, uint32_t _chip_shift)
 {
@@ -172,7 +172,7 @@ void gps_l1_ca_code_gen_complex_sampled(gsl::span<std::complex<float>> _dest, ui
             // millisecond).
 
             aux = (_ts * (i + 1)) / _tc;
-            _codeValueIndex = auxCeil(aux) - 1;
+            _codeValueIndex = AUX_CEIL(aux) - 1;
 
             // --- Make the digitized version of the C/A code -------------------
             // The "upsampled" code is made by selecting values form the CA code