Skip to content

Conversation

@ClausKlein
Copy link

prevent clang-tidy warnings
use thread sanitizer as default while tests
test the install config package too

ClausKlein and others added 4 commits March 7, 2022 11:06
prevent clang-tidy warnings
use thread sanitizer as default while tests
test the install config package too
add macos build host too
@ClausKlein ClausKlein marked this pull request as draft March 7, 2022 16:16
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>;
Copy link
Author

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());
Copy link
Author

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; }
Copy link
Author

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; }
Copy link
Author

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>
Copy link
Author

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)
Copy link
Author

@ClausKlein ClausKlein Mar 8, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant