Skip to content

Conversation

@YangJiao1996
Copy link

@YangJiao1996 YangJiao1996 commented Oct 25, 2021

This PR:

  • Fixes the void* error in get_reference_argument
  • Fixes the unqualifying id error
  • Cherry-picks commits in this PR

to resolve errors/warnings reported by Clang/Emscripten.

This PR also rebases off the latest rttrorg/rttr/master commits.

For reviewers: most commits in this PR are from the rebase. Please focus on reviewing commit 0104c37 to fc40694 which are "real" contents of the PR.

@YangJiao1996 YangJiao1996 force-pushed the feature/rttr-webassembly-update branch 2 times, most recently from 092e3ee to fc40694 Compare October 26, 2021 14:19
REQUIRE(arg.get_type() == rttr::type::get<simple_type>());


/////////////////////////////////////////////////////////////////////////////////////////
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this UT being removed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This UT has different behaviour on Clang than GCC (it passes if built with Clang but failed with GCC).
It could indicate that we were doing something wrong here (such as an undefined behaviour), but at this time we do not actually care about the behaviour when passing in a void* so I decided to remove it after a discussion with James.

@YangJiao1996 YangJiao1996 changed the base branch from master to lynx October 26, 2021 19:33
cgnx-ben-korza and others added 18 commits October 26, 2021 17:19
Make rttr give bindr5000 a reasonable error if it fails to load
a dll, a message like the one below is way more helpful than just
silently failing:

  "rttr failed to load Cognex.OMX, Cannot load library
  Cognex.OMX /home/omxdev/build_e/bin/libCognex.OMX.so:
  undefined symbol: _ZNK17ccFrequencyBuffer5widthEv"
Add the compiler recognition for visual studio 2019.
When this #pragma is present, if you use /external:W0 for your project
then all your internal headers are also set to /W0 for warning level.
LD_LIBRARY_PATH was not set correctlyqqq
Additional: disable initializer list warning
@YangJiao1996 YangJiao1996 force-pushed the feature/rttr-webassembly-update branch from fc40694 to 5a5efd9 Compare October 26, 2021 21:19
@YangJiao1996
Copy link
Author

Closing this PR since this branch ended up in a terrible state of commit history.

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.

None yet