鏡像自
https://github.com/quitesimpleorg/qsmaddy.git
synced 2024-11-22 07:37:50 +01:00
當前提交
b167316d52
@ -8,5 +8,5 @@ indent_style = space
|
|||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.{h,hh,hpp,c,cc,cpp,cxx}]
|
[*.{h,hh,hpp,c,cc,cpp,cxx,yml}]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
@ -25,10 +25,17 @@ file(GLOB_RECURSE MADDY_TESTS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/tests/maddy/*.cp
|
|||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
set(
|
if (UNIX)
|
||||||
|
set(
|
||||||
CMAKE_CXX_FLAGS
|
CMAKE_CXX_FLAGS
|
||||||
"${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions -fsanitize=address -fno-omit-frame-pointer"
|
"${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions -fsanitize=address -fno-omit-frame-pointer"
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
set(
|
||||||
|
CMAKE_CXX_FLAGS
|
||||||
|
"${CMAKE_CXX_FLAGS} -std=c++${MADDY_CPP_VERSION}"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
15
appveyor.yml
Normal file
15
appveyor.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
image: Visual Studio 2017
|
||||||
|
|
||||||
|
install:
|
||||||
|
- cmd: git submodule update --init --recursive
|
||||||
|
|
||||||
|
before_build:
|
||||||
|
- cmd: mkdir tmp
|
||||||
|
- cmd: cd tmp
|
||||||
|
- cmd: cmake -G "Visual Studio 15 Win64" ..
|
||||||
|
|
||||||
|
build:
|
||||||
|
project: $(APPVEYOR_BUILD_FOLDER)\tmp\$(APPVEYOR_PROJECT_NAME).sln
|
||||||
|
|
||||||
|
test_script:
|
||||||
|
- cmd: ctest -VV -C "Debug"
|
@ -157,7 +157,8 @@ protected:
|
|||||||
{
|
{
|
||||||
bool hasMetNonSpace = false;
|
bool hasMetNonSpace = false;
|
||||||
|
|
||||||
uint32_t indentation = std::count_if(
|
uint32_t indentation = static_cast<uint32_t>(
|
||||||
|
std::count_if(
|
||||||
line.begin(),
|
line.begin(),
|
||||||
line.end(),
|
line.end(),
|
||||||
[&hasMetNonSpace](unsigned char c)
|
[&hasMetNonSpace](unsigned char c)
|
||||||
@ -175,6 +176,7 @@ protected:
|
|||||||
hasMetNonSpace = true;
|
hasMetNonSpace = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
return indentation;
|
return indentation;
|
||||||
|
載入中…
新增問題並參考
Block a user