mirror of
https://github.com/hyblocker/OpenVR-SpaceCalibrator.git
synced 2026-10-06 07:00:23 +02:00
fix: formatting should use CRLF
This commit is contained in:
4 files changed
+13
-2
No files matched your search
+1
-1
@@ -135,7 +135,7 @@ IntegerLiteralSeparator:
|
||||
JavaScriptQuotes: Leave
|
||||
JavaScriptWrapImports: true
|
||||
LambdaBodyIndentation: Signature
|
||||
LineEnding: LF
|
||||
LineEnding: CRLF
|
||||
MacroBlockBegin: ""
|
||||
MacroBlockEnd: ""
|
||||
MaxEmptyLinesToKeep: 1
|
||||
|
||||
@@ -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
|
||||
@@ -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")
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user