-
Notifications
You must be signed in to change notification settings - Fork 3
modernize cmake #1
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
base: master
Are you sure you want to change the base?
Conversation
prevent clang-tidy warnings use thread sanitizer as default while tests test the install config package too
add macos build host too
try again with windows, but MVC compiler!
| requires std::is_copy_constructible_v<T>; | ||
| { g1 < g2 } -> std::convertible_to<bool>; | ||
| { g1 == g2 } -> std::convertible_to<bool>; | ||
| { g1 < g2 } -> std::same_as<bool>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this does not compile with Apple clang version 13.0.0
|
|
||
| sig.connect(printer("Second"), 1); | ||
| sig.connect(printer("Last"), std::numeric_limits<sigslot::group_id>::max()); | ||
| //FIXME: sig.connect(printer("Last"), std::numeric_limits<sigslot::group_id>::max()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: this does not compile on OSX?
| void m1() { ti += 1; } | ||
| void m2() { ti += 1; } | ||
| void m3() { ti += 1; } | ||
| void m1() const { ti += i; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only to prevent clang-tidy warning about convert to static function
|
|
||
| struct s { | ||
| void m() { std::cout << "member function\n"; } | ||
| void m() const { std::cout << "member function: v=" << v << std::endl; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only to prevent clang-tidy warning about convert to static function
| -Wno-gnu-zero-variadic-macro-arguments;-Wno-documentation;-Wno-missing-prototypes; | ||
| -Wno-padded;-Wno-weak-vtables;-Wno-c++17-extensions;-Wno-shadow-field-in-constructor; | ||
| -Wno-return-std-move-in-c++11> | ||
| $<$<BOOL:${SIGSLOT_COMPILER_CLANG_OR_CLANGCL_OR_GCC}>:-Wpedantic> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that seems better to me, and many of this -Wno-warnings are not known by Apple clang compiler!
| option(SIGSLOT_COMPILE_EXAMPLES "Compile optional exemples" ON) | ||
| option(SIGSLOT_COMPILE_TESTS "Compile tests" ON) | ||
| option(SIGSLOT_RUN_TESTS "Compile and run tests" ON) | ||
| option(SIGSLOT_RUN_TESTS "Compile and run tests" OFF) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not intuitive to me! With EXCLUDE_FROM_ALL, the tests are not compiled?
test with thread sanitizer again
add TODO notes
some are suppressed only with NOLINT!
prevent clang-tidy warnings
use thread sanitizer as default while tests
test the install config package too