[PATCH] D60383: FileCheck [3/12]: Stricter parsing of @LINE expressions
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 12 04:08:34 PDT 2019
thopre marked an inline comment as done.
thopre added inline comments.
================
Comment at: llvm/lib/Support/FileCheck.cpp:95
+ SM.PrintMessage(oploc, SourceMgr::DK_Error,
+ std::string("Unsupported numeric operation '") + Operator +
+ "'");
----------------
arsenm wrote:
> I thought these used Twine, not std::string?
It is but there is an implicit conversion from the latter to the former. Using Twine directly makes the diagnostic string less readable due to akward concatenation:
Twine("Unsupported numeric operation '").concat(Twine(Operator)).concat("'")
I feel the current code provides better readability.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60383/new/
https://reviews.llvm.org/D60383
More information about the llvm-commits
mailing list