[PATCH] D65213: [ELF] With --vs-diagnostics, print a separate message for each location of a duplicate symbol.
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 28 02:09:46 PDT 2019
ikudrin marked an inline comment as done.
ikudrin added inline comments.
================
Comment at: Common/ErrorHandler.cpp:182
+ R"((\n>>> defined at \S+:\d+\n>>>.*))");
+ std::string msgStr = msg.str();
+ std::smatch match;
----------------
grimar wrote:
> I'd inline `msgStr`.
I am not sure what you meant, but please note that according to https://en.cppreference.com/w/cpp/regex/match_results,
> Because `std::match_results` holds `std::sub_match`es, each of which is a pair of iterators into the original character sequence that was matched, it's undefined behavior to examine std::match_results if the original character sequence was destroyed or iterators to it were invalidated for other reasons.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65213/new/
https://reviews.llvm.org/D65213
More information about the llvm-commits
mailing list