-
Notifications
You must be signed in to change notification settings - Fork 13
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
WIP: Enable Plugin tests for clang and use ut #222
Conversation
b086f51
to
a024356
Compare
// Try to create a node from the global registry | ||
if (auto result = _global_registry->createBlock(name, type, params)) { | ||
return result; | ||
} | ||
|
||
auto it = _handler_for_name.find(name); | ||
auto it = _handler_for_name.find(std::string(name)); // TODO avoid std::string here |
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.
This could use something like in the answer here: https://stackoverflow.com/questions/34596768/stdunordered-mapfind-using-a-type-different-than-the-key-type not sure what the straight-forward way nowadays is.
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM! It seems that the original issue was solved by the new UT and/or Clang compiler version. I would leave it at this for the time being. We could re-open this if this reoccurs.
Make app_grc test a proper ut unit test and build/run them for clang. Work around issues with static lifetimes and ut (see issue #125).