This patch was generated using clang-tidy:
clang-tidy -checks="-*,modernize-deprecated-headers" -fix
(with some additional manual fixups)
24 files changed:
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <assert.h>
-#include <string.h>
-#include <stdlib.h>
+#include <cassert>
+#include <cstring>
+#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <cmath>
#include <algorithm>
-#include <assert.h>
-#include <string.h>
-#include <stdlib.h>
+#include <cassert>
+#include <cstring>
+#include <cstdlib>
#include <cmath>
#include "logic.hpp"
#include <cmath>
#include "logic.hpp"
-#include <assert.h>
-#include <stdlib.h>
-#include <string.h>
-
+#include <cassert>
+#include <cstdlib>
+#include <cstring>
#include <vector>
using std::lock_guard;
#include <vector>
using std::lock_guard;
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ENABLE_DECODE
#include <libsigrokdecode/libsigrokdecode.h>
#endif
#ifdef ENABLE_DECODE
#include <libsigrokdecode/libsigrokdecode.h>
#endif
#include <algorithm>
#include <iterator>
#include <algorithm>
#include <iterator>
+#include <cstdint>
+#include <cstdarg>
#include <QAction>
#include <QApplication>
#include <QAction>
#include <QApplication>
#include "view/view.hpp"
#include "views/trace/standardbar.hpp"
#include "view/view.hpp"
#include "views/trace/standardbar.hpp"
-#include <stdint.h>
-#include <stdarg.h>
#include <libsigrokcxx/libsigrokcxx.hpp>
using std::dynamic_pointer_cast;
#include <libsigrokcxx/libsigrokcxx.hpp>
using std::dynamic_pointer_cast;
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <QDoubleSpinBox>
#include <QDoubleSpinBox>
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <assert.h>
+#include <cstdint>
+#include <cassert>
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <QLineEdit>
#include <QSpinBox>
#include <QLineEdit>
#include <QSpinBox>
#include <algorithm>
#include <sstream>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <QApplication>
#include <cmath>
#include <QApplication>
#include <cmath>
#include <QApplication>
#include <cmath>
#include <QApplication>
#include <algorithm>
#include <QMenu>
#include <algorithm>
#include <QMenu>
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "colourbutton.hpp"
#include "colourbutton.hpp"
#include <QApplication>
#include <QPainter>
#include <QApplication>
#include <QPainter>
#include <QPushButton>
#include <QVBoxLayout>
#include <QPushButton>
#include <QVBoxLayout>
namespace pv {
namespace widgets {
namespace pv {
namespace widgets {
#include <QtGui>
#include <QApplication>
#include <QtGui>
#include <QApplication>
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "popuptoolbutton.hpp"
#include "popuptoolbutton.hpp"
#include "sweeptimingwidget.hpp"
#include <cstdlib>
#include "sweeptimingwidget.hpp"
#include <cstdlib>
#include "signalhandler.hpp"
#include "signalhandler.hpp"
-#include <assert.h>
-#include <signal.h>
-#include <stdlib.h>
+#include <cassert>
+#include <csignal>
+#include <cstdlib>
+
#include <sys/socket.h>
#include <unistd.h>
#include <sys/socket.h>
#include <unistd.h>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/unit_test.hpp>