Skip to content

modernize cmake#1

Draft
ClausKlein wants to merge 15 commits into
mousebyte:masterfrom
ClausKlein:develop
Draft

modernize cmake#1
ClausKlein wants to merge 15 commits into
mousebyte:masterfrom
ClausKlein:develop

Conversation

@ClausKlein

Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread example/slot-group.cpp

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
Copy Markdown
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?

Comment thread example/disconnection.cpp
void m1() { ti += 1; }
void m2() { ti += 1; }
void m3() { ti += 1; }
void m1() const { ti += i; }

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

Comment thread example/basic.cpp

struct s {
void m() { std::cout << "member function\n"; }
void m() const { std::cout << "member function: v=" << v << std::endl; }

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

Comment thread cmake/SigslotUtils.cmake
-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
Copy Markdown
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!

Comment thread CMakeLists.txt
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)

@ClausKlein ClausKlein Mar 8, 2022

Copy link
Copy Markdown
Author

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