Merge branch 'master' of gitlab.2:f1x1t/myxlib

This commit is contained in:
Andrei Astafev 2019-11-24 16:30:41 +03:00
commit 4706efc8c8
15 changed files with 43 additions and 30 deletions

View File

@ -36,9 +36,12 @@ variables:
- cd build - cd build
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis .. - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=_output -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/rtis ..
- ninja - ninja
- ninja install - >
- ninja package if [ -z "${CI_SHARED_ENVIRONMENT+x}" ]; then
- ninja package_source ninja install
ninja package
ninja package_source
fi
- echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status" - echo "${CI_COMMIT_SHA}" > "../${CI_JOB_NAME}.status"
artifacts: artifacts:
paths: paths:
@ -66,11 +69,4 @@ variables:
.scheduled-elbrus: .scheduled-elbrus:
extends: .scheduled-test extends: .scheduled-test
tags: ['elbrus'] tags: ['elbrus']
variables:
CI_QTDIR: "/opt/qt59"
before_script:
- export QTDIR=$CI_QTDIR
- export PATH="$CI_QTDIR/bin:$PATH"
- export LD_LIBRARY_PATH="$CI_QTDIR/lib:$LD_LIBRARY_PATH"
- export PKG_CONFIG_PATH="$CI_QTDIR/lib/pkgconfig:$PKG_CONFIG_PATH"

@ -1 +1 @@
Subproject commit 36073091bc042af1ef1f7324d26c503bce3ac148 Subproject commit 9002b99e3ec498c0cd431a985807b1df81590cd0

@ -1 +1 @@
Subproject commit 8b08ebee41cab2c632736e5ac137f05acfb64766 Subproject commit 45284f97623b7ae952020771846ccfe2e0a3cf58

@ -1 +1 @@
Subproject commit af57d3921c4d944f8475090f42b034518f7c0bc7 Subproject commit d0bc6e71e9c613eaaecca62eaf445d647f5216ed

View File

@ -16,9 +16,11 @@ common_target_properties(${current_target})
add_clang_tidy_check(${current_target} ${current_target_sources}) add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_uncrustify_format(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
add_dependencies(${current_target} base) add_dependencies(${current_target} base)
add_dependencies(${current_target} filesystem) add_dependencies(${current_target} filesystem)

View File

@ -16,9 +16,11 @@ common_target_properties(${current_target})
add_clang_tidy_check(${current_target} ${current_target_sources}) add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_uncrustify_format(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
add_dependencies(${current_target} base) add_dependencies(${current_target} base)
add_dependencies(${current_target} log) add_dependencies(${current_target} log)

View File

@ -16,9 +16,11 @@ common_target_properties(${current_target})
add_clang_tidy_check(${current_target} ${current_target_sources}) add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_uncrustify_format(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
add_dependencies(${current_target} base) add_dependencies(${current_target} base)
add_dependencies(${current_target} log) add_dependencies(${current_target} log)

View File

@ -16,9 +16,11 @@ common_target_properties(${current_target})
add_clang_tidy_check(${current_target} ${current_target_sources}) add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_uncrustify_format(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
add_dependencies(${current_target} base) add_dependencies(${current_target} base)
add_dependencies(${current_target} qt) add_dependencies(${current_target} qt)

View File

@ -17,7 +17,9 @@ add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
add_uncrustify_format(${current_target} ${current_target_sources} ${current_target_headers})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS})

View File

@ -22,7 +22,9 @@ add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
add_uncrustify_format(${current_target} ${current_target_sources} ${current_target_headers})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS})
target_include_directories(${current_target} SYSTEM PUBLIC ${FMT_INCLUDE_DIRS}) target_include_directories(${current_target} SYSTEM PUBLIC ${FMT_INCLUDE_DIRS})

View File

@ -68,9 +68,7 @@ int getExecutablePath( char* out, int capacity, int* dirname_length )
if ( dirname_length ) if ( dirname_length )
{ {
int i; for ( int i = length - 1; i >= 0; --i )
for ( i = length - 1; i >= 0; --i )
{ {
if ( out[i] == '/' ) if ( out[i] == '/' )
{ {
@ -156,9 +154,7 @@ int getModulePath( char* out, int capacity, int* dirname_length )
if ( dirname_length ) if ( dirname_length )
{ {
int i; for ( int i = length - 1; i >= 0; --i )
for ( i = length - 1; i >= 0; --i )
{ {
if ( out[i] == '/' ) if ( out[i] == '/' )
{ {

View File

@ -20,7 +20,9 @@ add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
add_uncrustify_format(${current_target} ${current_target_sources} ${current_target_headers})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS})
target_include_directories(${current_target} SYSTEM PUBLIC ${FMT_INCLUDE_DIRS}) target_include_directories(${current_target} SYSTEM PUBLIC ${FMT_INCLUDE_DIRS})

View File

@ -16,7 +16,9 @@ add_clang_tidy_check(${current_target} ${current_target_sources})
add_clang_analyze_check(${current_target} ${current_target_sources}) add_clang_analyze_check(${current_target} ${current_target_sources})
add_clazy_check(${current_target} ${current_target_sources}) add_clazy_check(${current_target} ${current_target_sources})
add_pvs_check(${current_target}) add_pvs_check(${current_target})
add_uncrustify_format(${current_target} ${current_target_sources} ${current_target_headers})
# Форматирование исходников
add_format_sources(${current_target} ${current_target_sources} ${current_target_headers})
target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS}) target_include_directories(${current_target} SYSTEM PUBLIC ${Qt5Core_INCLUDE_DIRS})
target_include_directories(${current_target} SYSTEM PUBLIC ${FMT_INCLUDE_DIRS}) target_include_directories(${current_target} SYSTEM PUBLIC ${FMT_INCLUDE_DIRS})

View File

@ -19,7 +19,12 @@ struct QOverload
// this adds const to non-const objects (like std::as_const) // this adds const to non-const objects (like std::as_const)
template < typename T > template < typename T >
Q_DECL_CONSTEXPR typename std::add_const< T >::type& qAsConst( T& t ) noexcept { return( t ); } Q_DECL_CONSTEXPR typename std::add_const< T >::type& qAsConst( T& t ) noexcept
{
return( t );
}
// prevent rvalue arguments: // prevent rvalue arguments:
template < typename T > template < typename T >
void qAsConst( const T&& ) = delete; void qAsConst( const T&& ) = delete;