Commit Graph

340 Commits

Author SHA1 Message Date
silverqx 930acaefb3 passed clang-tidy portability-*, readability-*
Enhanced .clang-tidy files.

 - -readability-function-cognitive-complexity for all tests
2021-10-28 14:55:28 +02:00
silverqx c5d1b36e34 passed clang-tidy misc-* 2021-10-27 17:20:17 +02:00
silverqx 5da755e1de changed some macro guards 2021-10-27 10:04:57 +02:00
silverqx c289a93a65 passed clang-tidy performance-* (header files) 2021-10-27 09:58:30 +02:00
silverqx fc2a30435e passed clang-tidy llvm-* (header files) 2021-10-26 20:08:16 +02:00
silverqx 48b2477f4c passed * clang-tidy (hpp files)
Diagnostics discovered by qtc6-beta1.
2021-10-26 12:22:56 +02:00
silverqx 845a71faae passed * clang-tidy (hpp files)
Following clang-tidy checks bugprone-*, concurrency-*, modernize-*, and
google-*.

 - namespace-comments
 - using-namespaces
 - virtual vs override/final
 - explicit ctor/conversion operator
2021-10-26 06:14:04 +02:00
silverqx ff9ea7b2d7 passed google-* clang-tidy (cpp files)
- namespace-comments
 - using-namespaces
2021-10-25 09:34:44 +02:00
silverqx 04e72a8f85 removed todo task 2021-10-24 14:15:50 +02:00
silverqx 537ba37e96 passed clang-tidy modernize-* 2021-10-24 10:01:26 +02:00
silverqx 182abf4c4f changed size_t to std::size_t 2021-10-23 10:47:58 +02:00
silverqx 33a3dbb436 added Qt 6.2 compatibility 2021-10-23 08:30:21 +02:00
silverqx 7f07ed4482 unified macro guards 2021-10-21 16:36:50 +02:00
silverqx 936588f525 unified macro guards (preparation) 2021-10-21 16:33:15 +02:00
silverqx ebaee23818 removed QT_NO_DEBUG_OUTPUT from common library
- also rename TinyQtCommon to TinyCommon
2021-10-21 14:04:26 +02:00
silverqx cea3b8a6ee used new QMYSQL/... constants everywhere 2021-10-21 10:36:35 +02:00
silverqx d2999dfcbf qmake/cmake unified debug output
- removed all occurrences of QT_NO_DEBUG_OUTPUT, it is up to user
 - TINYORM_DEBUG_SQL is enabled in debug builds and TINYORM_NO_DEBUG_SQL
   in release builds, user still can override debug build with
   TINYORM_NO_DEBUG_SQL
 - enhanced debug output in DatabaseConnection class
 - added driverNamePrintable(), databaseName(), hostName() to
   DB/DatabaseManager/DatabaseConnection
 - logquery added to NS and created library class for it
2021-10-21 09:48:53 +02:00
silverqx 89f8566d33 replaced TINYORM_COMMON_NAMESPACE with macro 2021-10-19 19:40:17 +02:00
silverqx cf0d60e122 moved export.hpp to macros/ folder 2021-10-19 17:14:33 +02:00
silverqx 3212fc4d1c added LibraryInfo class
This class provides info about build type, isDebugBuild() and version.

 - removed QT_DEBUG/QT_NO_DEBUG and used TINYORM_DEBUG/TINYORM_NO_DEBUG
   instead
2021-10-19 16:11:54 +02:00
silverqx 0b1557bac7 removed todo task 2021-10-19 10:24:38 +02:00
silverqx cc245f5468 sync cmake 2021-10-19 10:08:37 +02:00
silverqx 477934fa53 cmake TINY_UNPARSED_ARGUMENTS checks
- added TINY_UNPARSED_ARGUMENTS checks for all cmake_parse_arguments()
 - bugfix bad PARSE_ARGV index for cmake_parse_arguments()
 - added unset() to macros
2021-10-19 09:39:24 +02:00
silverqx 41eed8f8e8 cmake -nologo to CMAKE_RC_FLAGS
Add -nologo to the CMAKE_RC_FLAGS if it does not already contain it.
2021-10-19 08:44:42 +02:00
silverqx 03bbe98d67 cmake package config enhancements 2021-10-18 08:26:24 +02:00
silverqx 03208f149b removed todo task and unused code 2021-10-13 11:16:01 +02:00
silverqx d68d8fedb3 added pragma system_header 2021-10-13 10:06:50 +02:00
silverqx 839df33722 bugfix header instead of forward declaration 2021-10-12 18:18:46 +02:00
silverqx 631bca2aa3 qmake added toolchain requirements
Qt >= 5.15.2 recommended and MSVC >= 1929 required 🙂.
1929 to support pragma system_header.
2021-10-12 18:18:08 +02:00
silverqx 878bb1f011 qmake generate RC file only once 2021-10-10 17:45:31 +02:00
silverqx 830fadf93b added todo task 2021-10-10 16:55:18 +02:00
silverqx e94349a35d added todo task 2021-10-10 14:55:59 +02:00
silverqx 3f5672d3fd removed todo tasks 2021-10-10 11:52:42 +02:00
silverqx a595656804 qmake added Windows RC and manifest file for tests 2021-10-09 19:45:38 +02:00
silverqx 6c3c0bf940 added todo task 2021-10-09 13:46:50 +02:00
silverqx d60b9704a3 renamed export_global.hpp to export_common.hpp 2021-10-09 13:17:32 +02:00
silverqx 93a3311e72 qmake updated conf.pri.example for static build
Static build on MinGW.
2021-10-09 09:32:21 +02:00
silverqx 8b78deb46e qmake/cmake inline/extern constants edge cases
Enhanced qmake/cmake builds during testing of all Win32 build types.

 - throw fatal error for unsupported build types
 - cmake do not show INLINE_CONSTANTS option for MinGW clang shared
   build because it causes crashes
2021-10-08 21:03:33 +02:00
silverqx 32d17c3e08 cmake static build support
For the static build is always used inline constants.
For the shared build is used extern constants by default and this
default can be overridden by a new cmake option INLINE_CONSTANTS.

 - renamed project folder tests/utils to tests/TinyUtils
 - bugfix missed INTERFACE TINYUTILS_LINKING_SHARED in TinyUtils target
 - renamed export macro defines for TinyUtils from UTILS_ to TINYUTILS_
 - renamed utils_global.hpp to export.hpp in TinyUtils
 - added WINVER macro
 - updated NTDDI_WINNT and similar macros
 - removed TINYORM_LINKING_SHARED from TinyTestCommon.cmake, it is in
   the INTERFACE from TinyOrm target
2021-10-08 15:09:01 +02:00
silverqx b06f17a5bd qmake use INCLUDEPATH instead of include.pri
Do not use HEADERS from TinyORM project in tests.
2021-10-07 15:13:28 +02:00
silverqx a573409160 added TinyOrm.pri
Used this TinyOrm.pri file in TinyUtils library and individual tests.
2021-10-07 10:40:51 +02:00
silverqx 4deafe66a1 qmake static build support
Added CONFIG option inline_constants/extern_constants, in shared library
build is used extern_constants option ( can be overridden by
inline_constants option ) and in static library build is used
inline_constants option ( can not be overridden, extern constants cause
crash ).

 - refactored exports in TinyUtils
 - bugfix on tst_version for static build
2021-10-07 09:37:14 +02:00
silverqx d5deaa6e37 qmake/cmake mingw manifest extension in RC file
Use genexp to obtain manifest extension in Windows RC file.
2021-10-04 11:37:06 +02:00
silverqx 8800b4e366 removed todo tasks 2021-10-03 14:14:39 +02:00
silverqx 02604cf0f2 removed todo tasks 2021-10-03 09:02:51 +02:00
silverqx 526f9bde73 removed todo task 2021-10-03 08:38:14 +02:00
silverqx 2924e99ce4 qmake extracted common logic for TINY_RELEASE_TYPE 2021-10-03 08:33:27 +02:00
silverqx e4284de03c compile tst_version on MinGW
Compile also checkFileVersion_*() tests on MinGW.

 - bugfix undefined WINVER macro
2021-10-02 18:43:25 +02:00
silverqx 7746c5517d qmake conf.pri moved to the bottom
conf.pri user configuration files moved to the bottom of .pro/.pri
files, so an user can override everything.

 - bugfix PCH in tests was not closed in the precompile_header check
2021-10-02 17:23:05 +02:00
silverqx e0f61b97fc qmake added Windows RC and manifest files
Windows RC and manifest files are compiled and embedded only on Windows
and when a shared library is built.
Also removed TinyOrm_mingw.rc file, RC file for MinGW is injected
through the main TinyOrm.rc.in file, I had to do it this way because is
not possible to pass more RC files by qmake's RC_FILE variable, cmake
can do this without problems.

 - bugfix FILEFLAGS, FILEFLAGSMASK for debug configuration was not set
2021-10-02 12:52:06 +02:00