[llvm] [libcxx] [libc++][NFC] Make AssertionInfoMatcher::CheckMessageMatches Stricter (PR #77721)
Mark de Wever via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 10 23:03:24 PST 2024
================
@@ -89,8 +89,7 @@ struct AssertionInfoMatcher {
std::size_t found_at = got_msg.find(msg_);
if (found_at == std::string_view::npos)
return false;
- // Allow any match
- return true;
+ return found_at == 0 && got_msg.size() == msg_.size();
----------------
mordante wrote:
I like this!
https://github.com/llvm/llvm-project/pull/77721
More information about the llvm-commits
mailing list