bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ddrescue] [PATCH 7/7] [clang-tidy] Sort includes according to LLVM


From: Rosen Penev
Subject: [Bug-ddrescue] [PATCH 7/7] [clang-tidy] Sort includes according to LLVM rules
Date: Mon, 14 Oct 2019 13:59:46 -0700

Found with llvm-include-order

Rules are, C++ headers, then C, then private.

Signed-off-by: Rosen Penev <address@hidden>
---
 command_mode.cc | 7 ++++---
 fillbook.cc     | 1 +
 genbook.cc      | 1 +
 io.cc           | 1 +
 loggers.cc      | 1 +
 main.cc         | 5 +++--
 mapbook.cc      | 1 +
 mapfile.cc      | 1 +
 rescuebook.cc   | 5 +++--
 9 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/command_mode.cc b/command_mode.cc
index 46665e5..efa9007 100644
--- a/command_mode.cc
+++ b/command_mode.cc
@@ -17,20 +17,21 @@
 
 #define _FILE_OFFSET_BITS 64
 
-#include <cerrno>
 #include <cctype>
+#include <cerrno>
 #include <climits>
 #include <cstdio>
 #include <cstring>
 #include <string>
 #include <vector>
+
 #include <stdint.h>
-#include <unistd.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
-#include "rational.h"
 #include "block.h"
 #include "mapbook.h"
+#include "rational.h"
 #include "rescuebook.h"
 
 
diff --git a/fillbook.cc b/fillbook.cc
index 3ee766c..30477ad 100644
--- a/fillbook.cc
+++ b/fillbook.cc
@@ -25,6 +25,7 @@
 #include <ctime>
 #include <string>
 #include <vector>
+
 #include <stdint.h>
 #include <unistd.h>
 
diff --git a/genbook.cc b/genbook.cc
index d784c56..200d56c 100644
--- a/genbook.cc
+++ b/genbook.cc
@@ -25,6 +25,7 @@
 #include <ctime>
 #include <string>
 #include <vector>
+
 #include <stdint.h>
 #include <unistd.h>
 
diff --git a/io.cc b/io.cc
index d58f507..b7c4c3f 100644
--- a/io.cc
+++ b/io.cc
@@ -23,6 +23,7 @@
 #include <cstdio>
 #include <string>
 #include <vector>
+
 #include <stdint.h>
 #include <unistd.h>
 
diff --git a/loggers.cc b/loggers.cc
index 6e75ec2..09a3b45 100644
--- a/loggers.cc
+++ b/loggers.cc
@@ -20,6 +20,7 @@
 #include <cstdio>
 #include <string>
 #include <vector>
+
 #include <sys/stat.h>
 
 #include "block.h"
diff --git a/main.cc b/main.cc
index 55d53fb..cbcb745 100644
--- a/main.cc
+++ b/main.cc
@@ -33,17 +33,18 @@
 #include <ctime>
 #include <string>
 #include <vector>
+
 #include <fcntl.h>
 #include <stdint.h>
-#include <unistd.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
 #include "arg_parser.h"
-#include "rational.h"
 #include "block.h"
 #include "loggers.h"
 #include "mapbook.h"
 #include "non_posix.h"
+#include "rational.h"
 #include "rescuebook.h"
 
 #ifndef O_BINARY
diff --git a/mapbook.cc b/mapbook.cc
index bb35b4b..cbfee4f 100644
--- a/mapbook.cc
+++ b/mapbook.cc
@@ -26,6 +26,7 @@
 #include <ctime>
 #include <string>
 #include <vector>
+
 #include <stdint.h>
 #include <termios.h>
 #include <unistd.h>
diff --git a/mapfile.cc b/mapfile.cc
index ff1e55a..efaaf52 100644
--- a/mapfile.cc
+++ b/mapfile.cc
@@ -25,6 +25,7 @@
 #include <cstring>
 #include <string>
 #include <vector>
+
 #include <unistd.h>
 
 #include "block.h"
diff --git a/rescuebook.cc b/rescuebook.cc
index 0c9b2a8..9f8dd0f 100644
--- a/rescuebook.cc
+++ b/rescuebook.cc
@@ -26,14 +26,15 @@
 #include <ctime>
 #include <string>
 #include <vector>
+
 #include <stdint.h>
-#include <unistd.h>
 #include <sys/stat.h>
+#include <unistd.h>
 
-#include "rational.h"
 #include "block.h"
 #include "loggers.h"
 #include "mapbook.h"
+#include "rational.h"
 #include "rescuebook.h"
 
 
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]