1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-10-28 05:57:39 +00:00

Fix cmakelint and cpplint reported format errors

This commit is contained in:
Javier Arribas
2021-12-01 14:52:27 +01:00
parent 8a4055b5b8
commit c8f7966688
6 changed files with 36 additions and 38 deletions

View File

@@ -134,18 +134,14 @@ if(GRLIMESDR_FOUND AND NOT TARGET Gnuradio::limesdr)
#check for PPS custom version #check for PPS custom version
file(READ ${GRLIMESDR_INCLUDE_DIR}/limesdr/source.h TMPTXT) file(READ ${GRLIMESDR_INCLUDE_DIR}/limesdr/source.h TMPTXT)
string(FIND "${TMPTXT}" "enable_PPS_mode" matchres) string(FIND "${TMPTXT}" "enable_PPS_mode" matchres)
message(STATUS ${matchres}) message(STATUS ${matchres})
if(${matchres} EQUAL -1) if(${matchres} EQUAL -1)
message("Using standard gr-limesdr library ") message("Using standard gr-limesdr library ")
else() else()
set(GRLIMESDR_PPS True) set(GRLIMESDR_PPS True)
message("Using custom gr-limesdr library with PPS support ") message("Using custom gr-limesdr library with PPS support ")
endif() endif()
endif() endif()
mark_as_advanced(GRLIMESDR_LIBRARIES GRLIMESDR_INCLUDE_DIR) mark_as_advanced(GRLIMESDR_LIBRARIES GRLIMESDR_INCLUDE_DIR)

View File

@@ -273,7 +273,6 @@ endif()
target_compile_definitions(signal_source_adapters PUBLIC -DLimeSDR_PPS=1) target_compile_definitions(signal_source_adapters PUBLIC -DLimeSDR_PPS=1)
endif() endif()
if(ENABLE_CLANG_TIDY) if(ENABLE_CLANG_TIDY)
if(CLANG_TIDY_EXE) if(CLANG_TIDY_EXE)
set_target_properties(signal_source_adapters set_target_properties(signal_source_adapters

View File

@@ -23,7 +23,10 @@
#include <pmt/pmt_sugar.h> // for mp #include <pmt/pmt_sugar.h> // for mp
#include <cmath> // for round #include <cmath> // for round
#include <iostream> // for operator<< #include <iostream> // for operator<<
#include <memory>
#include <string> // for string #include <string> // for string
#include <vector>
gnss_sdr_sample_counter::gnss_sdr_sample_counter( gnss_sdr_sample_counter::gnss_sdr_sample_counter(
double _fs, double _fs,