From d1ba72a0fe5e8deabc6f94cd7bf97a030438c7ee Mon Sep 17 00:00:00 2001
From: Marcus Müller <mmueller@gnuradio.org>
Date: Mon, 18 Jan 2021 12:42:33 +0100
Subject: clang-tidy: run full .clang-tidy on C++17 codebase
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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>
---
 gnuradio-runtime/lib/math/qa_fxpt.cc     | 4 ++--
 gnuradio-runtime/lib/math/qa_fxpt_nco.cc | 4 ++--
 gnuradio-runtime/lib/math/qa_fxpt_vco.cc | 4 ++--
 gnuradio-runtime/lib/math/qa_math.cc     | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

(limited to 'gnuradio-runtime/lib/math')

diff --git a/gnuradio-runtime/lib/math/qa_fxpt.cc b/gnuradio-runtime/lib/math/qa_fxpt.cc
index a4577e089b..314adf58a3 100644
--- a/gnuradio-runtime/lib/math/qa_fxpt.cc
+++ b/gnuradio-runtime/lib/math/qa_fxpt.cc
@@ -14,10 +14,10 @@
 
 #include <gnuradio/fxpt.h>
 #include <gnuradio/math.h>
-#include <math.h>
-#include <stdio.h>
 #include <unistd.h>
 #include <boost/test/unit_test.hpp>
+#include <cmath>
+#include <cstdio>
 #include <iostream>
 
 static const float SIN_COS_TOLERANCE = 1e-5;
diff --git a/gnuradio-runtime/lib/math/qa_fxpt_nco.cc b/gnuradio-runtime/lib/math/qa_fxpt_nco.cc
index 1259dd6f9a..6bbc5e8158 100644
--- a/gnuradio-runtime/lib/math/qa_fxpt_nco.cc
+++ b/gnuradio-runtime/lib/math/qa_fxpt_nco.cc
@@ -14,10 +14,10 @@
 
 #include <gnuradio/fxpt_nco.h>
 #include <gnuradio/nco.h>
-#include <math.h>
-#include <stdio.h>
 #include <unistd.h>
 #include <boost/test/unit_test.hpp>
+#include <cmath>
+#include <cstdio>
 #include <iostream>
 
 static const float SIN_COS_TOLERANCE = 1e-5;
diff --git a/gnuradio-runtime/lib/math/qa_fxpt_vco.cc b/gnuradio-runtime/lib/math/qa_fxpt_vco.cc
index 2cd8a4733b..1d8235b9c9 100644
--- a/gnuradio-runtime/lib/math/qa_fxpt_vco.cc
+++ b/gnuradio-runtime/lib/math/qa_fxpt_vco.cc
@@ -14,10 +14,10 @@
 
 #include "vco.h"
 #include <gnuradio/fxpt_vco.h>
-#include <math.h>
-#include <stdio.h>
 #include <unistd.h>
 #include <boost/test/unit_test.hpp>
+#include <cmath>
+#include <cstdio>
 #include <iostream>
 
 static const float SIN_COS_TOLERANCE = 1e-5;
diff --git a/gnuradio-runtime/lib/math/qa_math.cc b/gnuradio-runtime/lib/math/qa_math.cc
index 560b88df53..8763c9f09e 100644
--- a/gnuradio-runtime/lib/math/qa_math.cc
+++ b/gnuradio-runtime/lib/math/qa_math.cc
@@ -8,9 +8,9 @@
  */
 
 #include <gnuradio/math.h>
-#include <stdio.h>
 #include <boost/test/unit_test.hpp>
 #include <cmath>
+#include <cstdio>
 
 BOOST_AUTO_TEST_CASE(test_binary_slicer1)
 {
-- 
cgit v1.2.3