aboutsummaryrefslogtreecommitdiffstats
path: root/gr-fft
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-01-18 12:42:33 +0100
committerMarcus Müller <marcus@hostalia.de>2021-01-19 12:21:46 +0100
commitd1ba72a0fe5e8deabc6f94cd7bf97a030438c7ee (patch)
tree4971b9715934c0fe1f5d23c7de1a925a2b8af7f5 /gr-fft
parentclang-tidy: add modernize-deprecated-header (diff)
downloadgnuradio-d1ba72a0fe5e8deabc6f94cd7bf97a030438c7ee.tar.xz
gnuradio-d1ba72a0fe5e8deabc6f94cd7bf97a030438c7ee.zip
clang-tidy: run full .clang-tidy on C++17 codebase
run /usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*' -fix .. from build directory. Then, clang-format -i $(git diff --name-only origin/master) to clang-format changed files. Then, refresh all header hashes in pybind bindings (*/python/bindings/*.cc) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-fft')
-rw-r--r--gr-fft/lib/fft.cc6
-rw-r--r--gr-fft/lib/fft_v_fftw.cc4
-rw-r--r--gr-fft/lib/fft_v_fftw.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/gr-fft/lib/fft.cc b/gr-fft/lib/fft.cc
index 9fc0a22f4..6b50d1f26 100644
--- a/gr-fft/lib/fft.cc
+++ b/gr-fft/lib/fft.cc
@@ -32,9 +32,9 @@ static int my_fftw_read_char(void* f) { return fgetc((FILE*)f); }
#define O_NONBLOCK 0
#endif //_WIN32
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <stdexcept>
#include <boost/filesystem/operations.hpp>
diff --git a/gr-fft/lib/fft_v_fftw.cc b/gr-fft/lib/fft_v_fftw.cc
index 387e63b45..c9a6dfd8d 100644
--- a/gr-fft/lib/fft_v_fftw.cc
+++ b/gr-fft/lib/fft_v_fftw.cc
@@ -13,9 +13,9 @@
#endif
#include "fft_v_fftw.h"
-#include <math.h>
-#include <string.h>
#include <volk/volk.h>
+#include <cmath>
+#include <cstring>
namespace gr {
namespace fft {
diff --git a/gr-fft/lib/fft_v_fftw.h b/gr-fft/lib/fft_v_fftw.h
index 95f17c58c..2c8f1403c 100644
--- a/gr-fft/lib/fft_v_fftw.h
+++ b/gr-fft/lib/fft_v_fftw.h
@@ -33,7 +33,7 @@ public:
bool shift,
int nthreads = 1);
- ~fft_v_fftw() {}
+ ~fft_v_fftw() override {}
void set_nthreads(int n) override;
int nthreads() const override;