-
-
Notifications
You must be signed in to change notification settings - Fork 0
Convert boost stacktrace to git submodule #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…to boost-1.88.0, then hook them up to the CMake build through Linking.cmake and the new Boost.Stacktrace.cmake... now just have to figure out the install for the TestCPP target.
I have forked the necessary repos into my own GH account, added the small required CMake modification to each project, verified build/ test, and tagged each update appropriately, which is where the state of the repos here are now. So in the future when Boost releases, this is the process: - Sync the boost dependency forks - Check out the new release tags - Apply the CMakeLists.txt changes from the previous *-cmake-git-submodule tags - Commit and retag with the appropriate release - Push the tag - Update TestCPP, create issue, PR, and link to milestone - Build/test/CI with the new tags - Fix any issues At this point, the Boost.Stacktrace dependency and its transitives are set up as Git submodules and everything is working. I think this is a much better way to manage the dependencies than manually merging everything from the new release in every time, and it tells the person which Boost.Stacktrace version the current version of the library depends on, and how that is connected to upstream. It also helps to not be just using whatever the latest develop HEAD was at the time I updated it last. Added a generic tag message for when a new Boost release is pulled in and retagged with the CMakeLists.txt changes.
Added new SubmodulesInit include to top-level CMakeLists.txt. This ensures CMake updates all the dependencies that are git submodules so everything is at the right tag/commit and exists. SubmodulesInit.cmake is fully implemented and derived from https://cliutils.gitlab.io/modern-cmake/chapters/projects/submodule.html No need to conditionally worry about including from Boost.Stacktrace since it is now handled through the git submodule dependencies. Includes.cmake is altered to take this into account. Add the required boost_* targets to the install target to ensure the necessary files are there to support the library when TestCPP gets installed. These targets are identified and added to the list in Boost.Stacktrace.cmake. Formatting. Update the TestCPP package email contact to the appropriate HSF email address. Implement a more selective and proper Boost.Stacktrace.cmake. This version is easier to maintain if the Boost.Stacktrace dependencies change in the future. It also lays out what targets to install given the environment we're building in.
Only run submodule init if the dependencies are actually used. Link to the proper library targets for each scenario, and break down all the build scenarios so it's clear which scenario gets which Boost.Stacktrace implementation, or fall back on Boost::stacktrace in case it is unclear what is supported.
Formatting that makes it clear where the list items begin. Ensure using Boost::stacktrace_basic if addr2line and backtrace are not found to enable at least limited backtracing. Make sure the STREQUAL is wrapped, just to make it clear. ClangCL requires notification through the BOOST_STACKTRACE_USE_WINDBG compile definition to ensure it uses WinDbg, ole32, and dbgeng.
And how using Boost.Stacktrace affects compatibility of the library w/ C++11, since it requires C++14. Fix casing.
⚡ Static analysis result ⚡ 🔴 clang-tidy found 180 issues! Click here to see details.TestCPP/src/TestCPPExceptions.cpp Lines 28 to 33 in d2902ae
!Line: 28 - error: included header iostream is not used directly [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPExceptions.cpp Lines 37 to 42 in d2902ae
!Line: 37 - error: no header providing "std::string" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPExceptions.cpp Lines 38 to 43 in d2902ae
!Line: 38 - error: no header providing "std::runtime_error" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPExceptions.cpp Lines 66 to 71 in d2902ae
!Line: 66 - error: std::move of the const variable 'msg' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 49 - note: consider changing the 1st parameter of 'TestCPPException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/src/TestCPPExceptions.cpp Lines 66 to 71 in d2902ae
!Line: 66 - error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/include/internal/TestCPPCommon.h Lines 88 to 93 in d2902ae
!Line: 88 - error: variable name 'SP' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 73 to 78 in d2902ae
!Line: 73 - error: single-argument constructors must be marked explicit to avoid unintentional implicit conversions [hicpp-explicit-conversions,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 81 to 86 in d2902ae
!Line: 81 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 89 to 94 in d2902ae
!Line: 89 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 90 to 95 in d2902ae
!Line: 90 - error: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 106 to 111 in d2902ae
!Line: 106 - error: constructor does not initialize these fields: data [cppcoreguidelines-pro-type-member-init,hicpp-member-init,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 108 to 113 in d2902ae
!Line: 108 - error: do not declare C-style arrays, use 'std::array' instead [cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 110 to 115 in d2902ae
!Line: 110 - error: constructor does not initialize these fields: data [cppcoreguidelines-pro-type-member-init,hicpp-member-init,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 110 to 115 in d2902ae
!Line: 110 - error: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [hicpp-explicit-conversions,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 110 to 115 in d2902ae
!Line: 110 - error: parameter name 'ts' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 111 to 116 in d2902ae
!Line: 111 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 111 to 116 in d2902ae
!Line: 111 - error: do not use reinterpret_cast [cppcoreguidelines-pro-type-reinterpret-cast,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 137 to 142 in d2902ae
!Line: 137 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 145 to 149 in d2902ae
!Line: 145 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
Lines 51 to 56 in d2902ae
!Line: 51 - error: implicit conversion 'const char *' -> 'bool' [readability-implicit-bool-conversion,-warnings-as-errors]
Lines 59 to 64 in d2902ae
!Line: 59 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
Lines 63 to 68 in d2902ae
!Line: 63 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
Lines 64 to 69 in d2902ae
!Line: 64 - error: parameter name 's' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
Lines 78 to 83 in d2902ae
!Line: 78 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
Lines 83 to 88 in d2902ae
!Line: 83 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
Lines 89 to 94 in d2902ae
!Line: 89 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 84 to 89 in d2902ae
!Line: 84 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 85 to 90 in d2902ae
!Line: 85 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/include/internal/TestCPPAssertions.h Lines 110 to 115 in d2902ae
!Line: 110 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 111 to 116 in d2902ae
!Line: 111 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/include/internal/TestCPPAssertions.h Lines 131 to 136 in d2902ae
!Line: 131 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 132 to 137 in d2902ae
!Line: 132 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/include/internal/TestCPPAssertions.h Lines 152 to 157 in d2902ae
!Line: 152 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 153 to 158 in d2902ae
!Line: 153 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/include/internal/TestCPPAssertions.h Lines 243 to 248 in d2902ae
!Line: 243 - error: return type 'const string' (aka 'const basic_string<char>') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 243 to 248 in d2902ae
!Line: 243 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 252 to 257 in d2902ae
!Line: 252 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 253 to 258 in d2902ae
!Line: 253 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 265 to 270 in d2902ae
!Line: 265 - error: return type 'const string' (aka 'const basic_string<char>') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 265 to 270 in d2902ae
!Line: 265 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 282 to 287 in d2902ae
!Line: 282 - error: return type 'const string' (aka 'const basic_string<char>') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 282 to 287 in d2902ae
!Line: 282 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 299 to 304 in d2902ae
!Line: 299 - error: return type 'const string' (aka 'const basic_string<char>') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 299 to 304 in d2902ae
!Line: 299 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 318 to 323 in d2902ae
!Line: 318 - error: return type 'const string' (aka 'const basic_string<char>') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 318 to 323 in d2902ae
!Line: 318 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 387 to 392 in d2902ae
!Line: 387 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPAssertions.h Lines 393 to 398 in d2902ae
!Line: 393 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 30 to 35 in d2902ae
!Line: 30 - error: no header providing "std::clog" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 31 to 36 in d2902ae
!Line: 31 - error: no header providing "std::current_exception" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 33 to 38 in d2902ae
!Line: 33 - error: no header providing "std::exception" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 34 to 39 in d2902ae
!Line: 34 - error: no header providing "std::__exception_ptr::exception_ptr" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 35 to 40 in d2902ae
!Line: 35 - error: no header providing "std::function" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 36 to 41 in d2902ae
!Line: 36 - error: no header providing "std::rethrow_exception" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 37 to 42 in d2902ae
!Line: 37 - error: no header providing "std::string" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 38 to 43 in d2902ae
!Line: 38 - error: no header providing "std::stringstream" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 43 to 48 in d2902ae
!Line: 43 - error: return type 'const string' (aka 'const basic_string<char>') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 43 to 48 in d2902ae
!Line: 43 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 48 to 53 in d2902ae
!Line: 48 - error: function 'strcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 48 to 53 in d2902ae
!Line: 48 - error: no header providing "strcmp" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 48 to 53 in d2902ae
!Line: 48 - error: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 60 to 65 in d2902ae
!Line: 60 - error: return type 'const string' (aka 'const basic_string<char>') is 'const'-qualified at the top level, which may reduce code readability without improving const correctness [readability-const-return-type,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 60 to 65 in d2902ae
!Line: 60 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 65 to 70 in d2902ae
!Line: 65 - error: implicit conversion 'int' -> 'bool' [readability-implicit-bool-conversion,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 83 to 88 in d2902ae
!Line: 83 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 83 to 88 in d2902ae
!Line: 83 - error: implicit conversion 'size_type' (aka 'unsigned long') -> 'bool' [readability-implicit-bool-conversion,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 84 to 89 in d2902ae
!Line: 84 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/src/TestCPPAssertions.cpp Lines 84 to 89 in d2902ae
!Line: 84 - error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 96 to 101 in d2902ae
!Line: 96 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 96 to 101 in d2902ae
!Line: 96 - error: implicit conversion 'size_type' (aka 'unsigned long') -> 'bool' [readability-implicit-bool-conversion,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 97 to 102 in d2902ae
!Line: 97 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/src/TestCPPAssertions.cpp Lines 102 to 107 in d2902ae
!Line: 102 - error: the parameter 'shouldThrow' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 110 to 115 in d2902ae
!Line: 110 - error: variable 'eptr' of type 'exception_ptr' can be declared 'const' [misc-const-correctness,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 119 to 124 in d2902ae
!Line: 119 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 123 to 128 in d2902ae
!Line: 123 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 133 to 138 in d2902ae
!Line: 133 - error: std::move of the const variable 'failureMessage' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/src/TestCPPAssertions.cpp Lines 145 to 150 in d2902ae
!Line: 145 - error: std::move of the const variable 'failureMessage' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/src/TestCPPAssertions.cpp Lines 164 to 169 in d2902ae
!Line: 164 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 164 to 169 in d2902ae
!Line: 164 - error: implicit conversion 'size_type' (aka 'unsigned long') -> 'bool' [readability-implicit-bool-conversion,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 165 to 170 in d2902ae
!Line: 165 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/src/TestCPPAssertions.cpp Lines 185 to 190 in d2902ae
!Line: 185 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 185 to 190 in d2902ae
!Line: 185 - error: implicit conversion 'size_type' (aka 'unsigned long') -> 'bool' [readability-implicit-bool-conversion,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 186 to 191 in d2902ae
!Line: 186 - error: std::move of the const variable 'err' has no effect or make the variable non-const [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Line: 98 - note: consider changing the 1st parameter of 'TestFailedException' from 'const string &&' (aka 'const basic_string<char> &&') to 'const string &' TestCPP/src/TestCPPAssertions.cpp Lines 191 to 194 in d2902ae
!Line: 191 - error: the parameter 'failureMessage' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]
TestCPP/src/TestCPPAssertions.cpp Lines 192 to 194 in d2902ae
!Line: 192 - error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 92 to 97 in d2902ae
!Line: 92 - error: enum 'TestCaseOutCompareOptions' uses a larger base type ('unsigned int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size [performance-enum-size,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 146 to 151 in d2902ae
!Line: 146 - error: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 153 to 158 in d2902ae
!Line: 153 - error: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 160 to 165 in d2902ae
!Line: 160 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 169 to 174 in d2902ae
!Line: 169 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 224 to 229 in d2902ae
!Line: 224 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 233 to 238 in d2902ae
!Line: 233 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 243 to 248 in d2902ae
!Line: 243 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 249 to 254 in d2902ae
!Line: 249 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 256 to 261 in d2902ae
!Line: 256 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 315 to 320 in d2902ae
!Line: 315 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestCase.h Lines 345 to 350 in d2902ae
!Line: 345 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 79 to 84 in d2902ae
!Line: 79 - error: constructor does not initialize these fields: firstRun, testSuitePassedMessage, lastRunSucceeded, lastRunSuccessCount, lastRunFailCount, totalRuntime [cppcoreguidelines-pro-type-member-init,hicpp-member-init,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 79 to 84 in d2902ae
!Line: 79 - error: rvalue reference parameter 'newSuiteName' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 80 to 85 in d2902ae
!Line: 80 - error: all parameters should be named in a function [hicpp-named-parameter,readability-named-parameter,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 90 to 95 in d2902ae
!Line: 90 - error: constructor does not initialize these fields: firstRun, testSuitePassedMessage, lastRunSucceeded, lastRunSuccessCount, lastRunFailCount, totalRuntime [cppcoreguidelines-pro-type-member-init,hicpp-member-init,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 90 to 95 in d2902ae
!Line: 90 - error: constructors that are callable with a single argument must be marked explicit to avoid unintentional implicit conversions [hicpp-explicit-conversions,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 90 to 95 in d2902ae
!Line: 90 - error: rvalue reference parameter 'newSuiteName' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 112 to 117 in d2902ae
!Line: 112 - error: function 'addTests' has inline specifier but is implicitly inlined [readability-redundant-inline-specifier,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 112 to 117 in d2902ae
!Line: 112 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 148 to 153 in d2902ae
!Line: 148 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 156 to 161 in d2902ae
!Line: 156 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/include/internal/TestCPPTestSuite.h Lines 181 to 186 in d2902ae
!Line: 181 - error: rvalue reference parameter 'newSuiteName' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 36 to 41 in d2902ae
!Line: 36 - error: no header providing "std::cerr" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 37 to 42 in d2902ae
!Line: 37 - error: no header providing "std::clog" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 38 to 43 in d2902ae
!Line: 38 - error: no header providing "std::cout" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 38 to 43 in d2902ae
!Line: 38 - error: using decl 'cout' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 38 - note: remove the using TestCPP/src/TestCPPTestSuite.cpp Lines 40 to 45 in d2902ae
!Line: 40 - error: no header providing "std::exception" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 41 to 46 in d2902ae
!Line: 41 - error: no header providing "std::fixed" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 42 to 47 in d2902ae
!Line: 42 - error: no header providing "std::function" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 43 to 48 in d2902ae
!Line: 43 - error: no header providing "std::invalid_argument" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 43 to 48 in d2902ae
!Line: 43 - error: using decl 'invalid_argument' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 43 - note: remove the using TestCPP/src/TestCPPTestSuite.cpp Lines 44 to 49 in d2902ae
!Line: 44 - error: no header providing "std::ostream" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 45 to 50 in d2902ae
!Line: 45 - error: no header providing "std::rethrow_exception" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 45 to 50 in d2902ae
!Line: 45 - error: using decl 'rethrow_exception' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 45 - note: remove the using TestCPP/src/TestCPPTestSuite.cpp Lines 46 to 51 in d2902ae
!Line: 46 - error: no header providing "std::runtime_error" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 46 to 51 in d2902ae
!Line: 46 - error: using decl 'runtime_error' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 46 - note: remove the using TestCPP/src/TestCPPTestSuite.cpp Lines 48 to 53 in d2902ae
!Line: 48 - error: no header providing "std::string" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 49 to 54 in d2902ae
!Line: 49 - error: no header providing "std::tuple" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 69 to 74 in d2902ae
!Line: 69 - error: no header providing "TestCPP::TestObjName" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 70 to 75 in d2902ae
!Line: 70 - error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 73 to 78 in d2902ae
!Line: 73 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 77 to 82 in d2902ae
!Line: 77 - error: use a trailing return type for this function [modernize-use-trailing-return-type,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 82 to 87 in d2902ae
!Line: 82 - error: the 'empty' method should be used to check for emptiness instead of 'size' [readability-container-size-empty,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 83 to 88 in d2902ae
!Line: 83 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 97 to 102 in d2902ae
!Line: 97 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 100 to 105 in d2902ae
!Line: 100 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 101 to 106 in d2902ae
!Line: 101 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 110 to 115 in d2902ae
!Line: 110 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 114 to 119 in d2902ae
!Line: 114 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 131 to 136 in d2902ae
!Line: 131 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 137 to 142 in d2902ae
!Line: 137 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 140 to 145 in d2902ae
!Line: 140 - error: variable 'suiteRuntimeElapsed' of type 'double' can be declared 'const' [misc-const-correctness,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 151 to 156 in d2902ae
!Line: 151 - error: do not use 'endl' with streams; use '\n' instead [performance-avoid-endl,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 160 to 165 in d2902ae
!Line: 160 - error: rvalue reference parameter 'test' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved,-warnings-as-errors]
TestCPP/src/TestCPPTestSuite.cpp Lines 173 to 178 in d2902ae
!Line: 173 - error: rvalue reference parameter 'test' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved,-warnings-as-errors]
TestCPP/include/internal/TestCPPUtil.h Lines 110 to 115 in d2902ae
!Line: 110 - error: do not implicitly decay an array into a pointer; consider using gsl::array_view or an explicit cast instead [cppcoreguidelines-pro-bounds-array-to-pointer-decay,hicpp-no-array-decay,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 45 to 50 in d2902ae
!Line: 45 - error: no header providing "std::cerr" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 46 to 51 in d2902ae
!Line: 46 - error: no header providing "std::clog" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 47 to 52 in d2902ae
!Line: 47 - error: no header providing "std::cout" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 49 to 54 in d2902ae
!Line: 49 - error: no header providing "std::exception" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 50 to 55 in d2902ae
!Line: 50 - error: no header providing "std::fixed" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 51 to 56 in d2902ae
!Line: 51 - error: no header providing "std::function" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 52 to 57 in d2902ae
!Line: 52 - error: no header providing "std::invalid_argument" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 52 to 57 in d2902ae
!Line: 52 - error: using decl 'invalid_argument' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 52 - note: remove the using TestCPP/src/TestCPPTestCase.cpp Lines 53 to 58 in d2902ae
!Line: 53 - error: no header providing "std::rethrow_exception" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 53 to 58 in d2902ae
!Line: 53 - error: using decl 'rethrow_exception' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 53 - note: remove the using TestCPP/src/TestCPPTestCase.cpp Lines 54 to 59 in d2902ae
!Line: 54 - error: no header providing "std::runtime_error" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 54 to 59 in d2902ae
!Line: 54 - error: using decl 'runtime_error' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 54 - note: remove the using TestCPP/src/TestCPPTestCase.cpp Lines 56 to 61 in d2902ae
!Line: 56 - error: no header providing "std::string" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 57 to 62 in d2902ae
!Line: 57 - error: no header providing "std::tuple" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 57 to 62 in d2902ae
!Line: 57 - error: using decl 'tuple' is unused [misc-unused-using-decls,-warnings-as-errors]
!Line: 57 - note: remove the using TestCPP/src/TestCPPTestCase.cpp Lines 64 to 69 in d2902ae
!Line: 64 - error: no header providing "atomic_int" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 72 to 77 in d2902ae
!Line: 72 - error: initialization of 'stdoutBuffer' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp,-warnings-as-errors]
!Line: 110 - note: possibly throwing constructor declared here TestCPP/src/TestCPPTestCase.cpp Lines 79 to 84 in d2902ae
!Line: 79 - error: initialization of 'clogBuffer' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp,-warnings-as-errors]
!Line: 110 - note: possibly throwing constructor declared here TestCPP/src/TestCPPTestCase.cpp Lines 86 to 91 in d2902ae
!Line: 86 - error: initialization of 'stderrBuffer' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp,-warnings-as-errors]
!Line: 110 - note: possibly throwing constructor declared here TestCPP/src/TestCPPTestCase.cpp Lines 93 to 98 in d2902ae
!Line: 93 - error: initialization of 'stdoutOriginal' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp,-warnings-as-errors]
!Line: 110 - note: possibly throwing constructor declared here TestCPP/src/TestCPPTestCase.cpp Lines 100 to 105 in d2902ae
!Line: 100 - error: initialization of 'clogOriginal' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp,-warnings-as-errors]
!Line: 110 - note: possibly throwing constructor declared here TestCPP/src/TestCPPTestCase.cpp Lines 107 to 112 in d2902ae
!Line: 107 - error: initialization of 'stderrOriginal' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp,-warnings-as-errors]
!Line: 110 - note: possibly throwing constructor declared here TestCPP/src/TestCPPTestCase.cpp Lines 121 to 126 in d2902ae
!Line: 121 - error: 'notifyTestPassed' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 123 to 128 in d2902ae
!Line: 123 - error: 'test' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 123 to 128 in d2902ae
!Line: 123 - error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 124 to 129 in d2902ae
!Line: 124 - error: 'testName' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 124 to 129 in d2902ae
!Line: 124 - error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 145 to 150 in d2902ae
!Line: 145 - error: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 149 to 154 in d2902ae
!Line: 149 - error: 'pass' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 150 to 155 in d2902ae
!Line: 150 - error: 'lastRunTime' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 152 to 157 in d2902ae
!Line: 152 - error: 'stdoutCaptured' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 153 to 158 in d2902ae
!Line: 153 - error: 'clogCaptured' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 154 to 159 in d2902ae
!Line: 154 - error: 'stderrCaptured' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 170 to 175 in d2902ae
!Line: 170 - error: parameter name 'o' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 171 to 176 in d2902ae
!Line: 171 - error: 'option' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 171 to 176 in d2902ae
!Line: 171 - error: std::move of the expression of the trivially-copyable type 'TestCaseOutCompareOptions' has no effect; remove std::move() [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 171 to 176 in d2902ae
!Line: 171 - error: no header providing "std::move" is directly included [misc-include-cleaner,-warnings-as-errors]
TestCPP/src/TestCPPTestCase.cpp Lines 173 to 178 in d2902ae
!Line: 173 - error: std::move of the expression of the trivially-copyable type 'bool' has no effect; remove std::move() [hicpp-move-const-arg,performance-move-const-arg,-warnings-as-errors]
!Maximum character count per GitHub comment has been reached! Not all warnings/errors has been parsed! |
Use find_package, as that is how FindBacktrace is intended to be used. No need to call FindBinUtils, this CMake find module is loaded during CMake initialization.
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #116 +/- ##
=======================================
Coverage 87.44% 87.44%
=======================================
Files 10 10
Lines 486 486
Branches 61 61
=======================================
Hits 425 425
Misses 52 52
Partials 9 9 ☔ View full report in Codecov by Sentry. |
This branch converts the dependency structure from static files to git submodules.