diff --git a/.clang-format b/.clang-format index 11b8857a..a98456fe 100644 --- a/.clang-format +++ b/.clang-format @@ -21,11 +21,17 @@ NamespaceIndentation: All #IncludeBlocks: Regroup IncludeCategories: - Regex: '^(<|")(common.hpp|strings.hpp|version.hpp|obs.h)("|>)' - Priority: 0 + Priority: 100 + - Regex: '^ #include #include #include #include #include -#include #pragma warning(pop) } diff --git a/source/encoders/ffmpeg-encoder.hpp b/source/encoders/ffmpeg-encoder.hpp index 727637f3..be8513f8 100644 --- a/source/encoders/ffmpeg-encoder.hpp +++ b/source/encoders/ffmpeg-encoder.hpp @@ -38,9 +38,9 @@ extern "C" { #pragma warning(push) #pragma warning(disable : 4242 4244 4365) #endif +#include #include #include -#include #ifdef _MSC_VER #pragma warning(pop) #endif diff --git a/source/encoders/handlers/nvenc_h264_handler.cpp b/source/encoders/handlers/nvenc_h264_handler.cpp index 41023c9c..b6be1c79 100644 --- a/source/encoders/handlers/nvenc_h264_handler.cpp +++ b/source/encoders/handlers/nvenc_h264_handler.cpp @@ -33,8 +33,8 @@ extern "C" { #pragma warning(push) #pragma warning(disable : 4242 4244 4365) #endif -#include #include +#include #ifdef _MSC_VER #pragma warning(pop) #endif diff --git a/source/transitions/transition-shader.cpp b/source/transitions/transition-shader.cpp index b4ec6fb6..cb8ad2df 100644 --- a/source/transitions/transition-shader.cpp +++ b/source/transitions/transition-shader.cpp @@ -17,9 +17,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "transition-shader.hpp" #include "strings.hpp" #include -#include "transition-shader.hpp" #include "utility.hpp" #define ST "Transition.Shader"