bneradt opened a new pull request, #13622:
URL: https://github.com/apache/trafficserver/pull/13622

   std::unordered_map::emplace may construct its node before discovering
   the key is already present, consuming the moved-from Entry even though
   nothing was inserted. The duplicate-registration warning then read
   plugin_name out of that gutted Entry and reported the incoming owner as
   "core". try_emplace leaves the argument untouched when the key exists,
   so the warning can name the registration it rejected.
   
   Caught by the new clang-tidy CI check (bugprone-use-after-move).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to