fix: formatting should use CRLF

This commit is contained in:
Hyblocker committed 2026-08-29 11:54:15 +02:00
1 parent ce9f453cb5
commit 2a41e7933b
4 files changed
+13 -2

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ IntegerLiteralSeparator:
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
LambdaBodyIndentation: Signature
LineEnding: LF
LineEnding: CRLF
MacroBlockBegin: ""
MacroBlockEnd: ""
MaxEmptyLinesToKeep: 1
+6
View File
@@ -0,0 +1,6 @@
* text=auto eol=crlf
*.cpp text eol=crlf
*.cc text eol=crlf
*.c text eol=crlf
*.h text eol=crlf
*.hpp text eol=crlf
+6
View File
@@ -81,5 +81,11 @@ if (UNIX AND NOT APPLE)
SET(CMAKE_BUILD_RPATH_USE_ORIGIN TRUE)
endif()
# add editorconfig to vcxprojs
if (WIN32)
add_custom_target(FormattingRules SOURCES "${CMAKE_SOURCE_DIR}/.editorconfig" "${CMAKE_SOURCE_DIR}/.clang-format")
set_property(TARGET FormattingRules PROPERTY FOLDER "Solution Items")
endif()
# Include project
add_subdirectory ("src")
-1
View File
@@ -161,7 +161,6 @@ int entry_point(int argc, char* argv[])
#if OS_WINDOWS
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
{
// need to convert from UTF16-LE to UTF8 bc windows is special
int argc;
LPWSTR* wargv = CommandLineToArgvW(GetCommandLineW(), &argc);