Commit 60934c8a27e47031ee14f732c96c6b1249bab1ef
1 parent
c94aa406
Fixing include order
Showing
11 changed files
with
37 additions
and
37 deletions
.clang-tidy
| 1 | 1 | #Checks: '*,-clang-analyzer-alpha.*' |
| 2 | 2 | #Checks: '-*,google-readability-casting,llvm-namespace-comment,performance-unnecessary-value-param,llvm-include-order,misc-throw-by-value-catch-by-reference,readability-container-size-empty,google-runtime-references,modernize*' |
| 3 | -Checks: '-*,llvm-namespace-comment' | |
| 3 | +Checks: '-*,llvm-namespace-comment,llvm-include-order' | |
| 4 | 4 | HeaderFilterRegex: '.*hpp' |
| 5 | 5 | CheckOptions: |
| 6 | 6 | - key: readability-braces-around-statements.ShortStatementLines | ... | ... |
include/CLI/App.hpp
| ... | ... | @@ -3,26 +3,26 @@ |
| 3 | 3 | // Distributed under the LGPL v2.1 license. See accompanying |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | -#include <string> | |
| 7 | -#include <memory> | |
| 6 | +#include <algorithm> | |
| 8 | 7 | #include <deque> |
| 9 | -#include <iostream> | |
| 10 | 8 | #include <functional> |
| 11 | -#include <algorithm> | |
| 12 | -#include <sstream> | |
| 13 | -#include <set> | |
| 9 | +#include <iostream> | |
| 10 | +#include <memory> | |
| 14 | 11 | #include <numeric> |
| 12 | +#include <set> | |
| 13 | +#include <sstream> | |
| 14 | +#include <string> | |
| 15 | 15 | #include <utility> |
| 16 | 16 | #include <vector> |
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | // CLI Library includes |
| 20 | 20 | #include "CLI/Error.hpp" |
| 21 | -#include "CLI/TypeTools.hpp" | |
| 22 | -#include "CLI/StringTools.hpp" | |
| 23 | -#include "CLI/Split.hpp" | |
| 24 | -#include "CLI/Option.hpp" | |
| 25 | 21 | #include "CLI/Ini.hpp" |
| 22 | +#include "CLI/Option.hpp" | |
| 23 | +#include "CLI/Split.hpp" | |
| 24 | +#include "CLI/StringTools.hpp" | |
| 25 | +#include "CLI/TypeTools.hpp" | |
| 26 | 26 | |
| 27 | 27 | namespace CLI { |
| 28 | 28 | ... | ... |
include/CLI/CLI.hpp
| ... | ... | @@ -4,12 +4,12 @@ |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | 6 | // CLI Library includes |
| 7 | +#include "CLI/App.hpp" | |
| 7 | 8 | #include "CLI/Error.hpp" |
| 8 | -#include "CLI/TypeTools.hpp" | |
| 9 | -#include "CLI/StringTools.hpp" | |
| 10 | 9 | #include "CLI/Ini.hpp" |
| 10 | +#include "CLI/Option.hpp" | |
| 11 | 11 | #include "CLI/Split.hpp" |
| 12 | +#include "CLI/StringTools.hpp" | |
| 13 | +#include "CLI/TypeTools.hpp" | |
| 12 | 14 | #include "CLI/Validators.hpp" |
| 13 | -#include "CLI/Option.hpp" | |
| 14 | -#include "CLI/App.hpp" | |
| 15 | 15 | ... | ... |
include/CLI/Error.hpp
include/CLI/Ini.hpp
| ... | ... | @@ -3,10 +3,10 @@ |
| 3 | 3 | // Distributed under the LGPL v2.1 license. See accompanying |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | +#include <algorithm> | |
| 6 | 7 | #include <fstream> |
| 7 | -#include <string> | |
| 8 | 8 | #include <iostream> |
| 9 | -#include <algorithm> | |
| 9 | +#include <string> | |
| 10 | 10 | |
| 11 | 11 | #include "CLI/StringTools.hpp" |
| 12 | 12 | ... | ... |
include/CLI/Option.hpp
| ... | ... | @@ -3,18 +3,18 @@ |
| 3 | 3 | // Distributed under the LGPL v2.1 license. See accompanying |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | -#include <string> | |
| 7 | -#include <functional> | |
| 8 | -#include <utility> | |
| 9 | -#include <vector> | |
| 10 | -#include <tuple> | |
| 11 | 6 | #include <algorithm> |
| 7 | +#include <functional> | |
| 12 | 8 | #include <memory> |
| 13 | 9 | #include <set> |
| 10 | +#include <string> | |
| 11 | +#include <tuple> | |
| 12 | +#include <utility> | |
| 13 | +#include <vector> | |
| 14 | 14 | |
| 15 | 15 | #include "CLI/Error.hpp" |
| 16 | -#include "CLI/StringTools.hpp" | |
| 17 | 16 | #include "CLI/Split.hpp" |
| 17 | +#include "CLI/StringTools.hpp" | |
| 18 | 18 | |
| 19 | 19 | namespace CLI { |
| 20 | 20 | ... | ... |
include/CLI/Split.hpp
include/CLI/StringTools.hpp
| ... | ... | @@ -3,12 +3,12 @@ |
| 3 | 3 | // Distributed under the LGPL v2.1 license. See accompanying |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | -#include <string> | |
| 7 | -#include <sstream> | |
| 6 | +#include <algorithm> | |
| 8 | 7 | #include <iomanip> |
| 9 | 8 | #include <locale> |
| 9 | +#include <sstream> | |
| 10 | +#include <string> | |
| 10 | 11 | #include <type_traits> |
| 11 | -#include <algorithm> | |
| 12 | 12 | |
| 13 | 13 | namespace CLI { |
| 14 | 14 | namespace detail { | ... | ... |
include/CLI/Timer.hpp
| ... | ... | @@ -3,10 +3,10 @@ |
| 3 | 3 | // Distributed under the LGPL v2.1 license. See accompanying |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | -#include <string> | |
| 7 | -#include <iostream> | |
| 8 | 6 | #include <chrono> |
| 9 | 7 | #include <functional> |
| 8 | +#include <iostream> | |
| 9 | +#include <string> | |
| 10 | 10 | #include <utility> |
| 11 | 11 | |
| 12 | 12 | namespace CLI { | ... | ... |
include/CLI/TypeTools.hpp
| ... | ... | @@ -3,10 +3,10 @@ |
| 3 | 3 | // Distributed under the LGPL v2.1 license. See accompanying |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | -#include <vector> | |
| 7 | -#include <type_traits> | |
| 8 | -#include <string> | |
| 9 | 6 | #include <exception> |
| 7 | +#include <string> | |
| 8 | +#include <type_traits> | |
| 9 | +#include <vector> | |
| 10 | 10 | |
| 11 | 11 | namespace CLI { |
| 12 | 12 | ... | ... |
include/CLI/Validators.hpp
| ... | ... | @@ -3,16 +3,16 @@ |
| 3 | 3 | // Distributed under the LGPL v2.1 license. See accompanying |
| 4 | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | |
| 6 | -#include <string> | |
| 7 | -#include <iostream> | |
| 8 | -#include <functional> | |
| 9 | 6 | #include "CLI/TypeTools.hpp" |
| 7 | +#include <functional> | |
| 8 | +#include <iostream> | |
| 9 | +#include <string> | |
| 10 | 10 | |
| 11 | 11 | // C standard library |
| 12 | 12 | // Only needed for existence checking |
| 13 | 13 | // Could be swapped for filesystem in C++17 |
| 14 | -#include <sys/types.h> | |
| 15 | 14 | #include <sys/stat.h> |
| 15 | +#include <sys/types.h> | |
| 16 | 16 | |
| 17 | 17 | namespace CLI { |
| 18 | 18 | ... | ... |