From 6a9921c9cef20d728bc8930d0aa2047adfca45ef Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 5 Apr 2020 18:51:35 +0200 Subject: [PATCH] project: Fix include ordering and reapply formatting --- .clang-format | 12 +++++++++--- source/encoders/ffmpeg-encoder.cpp | 2 +- source/encoders/ffmpeg-encoder.hpp | 2 +- source/encoders/handlers/nvenc_h264_handler.cpp | 2 +- source/transitions/transition-shader.cpp | 2 +- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.clang-format b/.clang-format index 11b8857..a98456f 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 727637f..be8513f 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 41023c9..b6be1c7 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 b4ec6fb..cb8ad2d 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"