[PATCH] D58484: [DO NOT SUBMIT] Add -vs-diagnostics.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 02:24:55 PDT 2019


ruiu added inline comments.


================
Comment at: Common/ErrorHandler.cpp:89
+static std::string getLocation(std::string Msg, std::string Default) {
+  static std::vector<std::regex> Regexes{
+      std::regex(
----------------
MaskRay wrote:
> How about using `llvm::Regex` instead of `std::regex`. I assume that may make the increased code size smaller.
I'm not sure if we still should maintain llvm::Regex as I believe it is written before C++11. Maybe we should migrate to std::regex? I'm also not worried too much about the binary size, as lld already contains entire LLVM and std::regex shouldn't be too large.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58484/new/

https://reviews.llvm.org/D58484





More information about the llvm-commits mailing list