diff --git a/.clang-format b/.clang-format index 6dd23d6..ffb2a92 100644 --- a/.clang-format +++ b/.clang-format @@ -21,16 +21,37 @@ BreakBeforeTernaryOperators: false ColumnLimit: 100 ConstructorInitializerIndentWidth: 2 IncludeCategories: + + # Local includes "": - Regex: '^".*' Priority: 1 - - Regex: '^' + + # Third party libraries: + - Regex: '^: + - Regex: '^<.*\.h|hpp>' Priority: 2 - - Regex: '^<.*' - Priority: 99 + + # C++ standard library: + - Regex: '^<[^.]*>$' + Priority: 100 + + # Anything else: - Regex: '.*' Priority: 4 + IncludeIsMainRegex: '(Test)?$' IndentCaseLabels: false IndentWidth: 4 diff --git a/test/vmtester/vmtester.cpp b/test/vmtester/vmtester.cpp index ac67a41..aa8b8a3 100644 --- a/test/vmtester/vmtester.cpp +++ b/test/vmtester/vmtester.cpp @@ -3,8 +3,8 @@ // Licensed under the Apache License, Version 2.0. #include "vmtester.hpp" -#include #include +#include #include #include diff --git a/test/vmtester/vmtester.hpp b/test/vmtester/vmtester.hpp index 4cb016a..57cca08 100644 --- a/test/vmtester/vmtester.hpp +++ b/test/vmtester/vmtester.hpp @@ -3,8 +3,8 @@ // Licensed under the Apache License, Version 2.0. #pragma once -#include #include +#include class evmc_vm_test : public ::testing::Test {