diff options
-rw-r--r-- | .clang-format | 11 | ||||
-rw-r--r-- | test/other_tools/git_operations/git_config_run.test.cpp | 3 |
2 files changed, 6 insertions, 8 deletions
diff --git a/.clang-format b/.clang-format index a1d49bf1..e5d1971f 100644 --- a/.clang-format +++ b/.clang-format @@ -19,14 +19,13 @@ BreakBeforeBraces: Custom ColumnLimit: 80 DerivePointerAlignment: false IncludeCategories: - - Regex: '^(<|")(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdargh|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)\.h' - Priority: 1 - - Regex: '^(<|")(cstdlib|csignal|csetjmp|cstdarg|typeinfo|typeindex|type_traits|bitset|functional|utility|ctime|chrono|cstddef|initializer_list|tuple|any|optional|variant|new|memory|scoped_allocator|memory_resource|climits|cfloat|cstdint|cinttypes|limits|exception|stdexcept|cassert|system_error|cerrno|cctype|cwctype|cstring|cwchar|cuchar|string|string_view|array|vector|deque|list|forward_list|set|map|unordered_set|unordered_map|stack|queue|algorithm|execution|teratorslibrary|iterator|cmath|complex|valarray|random|numeric|ratio|cfenv|iosfwd|ios|istream|ostream|iostream|fstream|sstream|strstream|iomanip|streambuf|cstdio|locale|clocale|codecvt|regex|atomic|thread|mutex|shared_mutex|future|condition_variable|filesystem|ciso646|ccomplex|ctgmath|cstdalign|cstdbool)(>|")$' - Priority: 2 + # The base style already correctly handles system includes + # C-style third-party includes - Regex: '^<.*\.(h|hpp)>' - Priority: 3 + Priority: 10 + # General external and project includes - Regex: '^".*"' - Priority: 4 + Priority: 20 IndentWidth: 4 KeepEmptyLinesAtTheStartOfBlocks: true PenaltyBreakString: 100 diff --git a/test/other_tools/git_operations/git_config_run.test.cpp b/test/other_tools/git_operations/git_config_run.test.cpp index 57380280..34d625cd 100644 --- a/test/other_tools/git_operations/git_config_run.test.cpp +++ b/test/other_tools/git_operations/git_config_run.test.cpp @@ -17,6 +17,7 @@ #include <functional> #include <memory> #include <optional> +#include <span> #include <string> #include "src/buildtool/file_system/git_context.hpp" @@ -26,8 +27,6 @@ #include "src/other_tools/git_operations/git_config_settings.hpp" #include "test/utils/logging/log_config.hpp" -#include <span> - extern "C" { #include <git2.h> } |