[PATCH] D79375: [FileCheck] Make invalid prefix diagnostics more precise
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 14:36:11 PDT 2020
thopre added inline comments.
================
Comment at: llvm/lib/Support/FileCheck.cpp:1891-1893
+ errs() << "error: supplied check prefix must start with a letter and "
+ << "contain only alphanumeric characters, hyphens, and "
+ << "underscores: '" << Prefix << "'\n";
----------------
jdenny wrote:
> thopre wrote:
> > Could you make ValidateCheckPrefix throw a DiagnosticError and print the error here?
> That seems ok, but what's the motivation? Is it a preferred style, or is there a technical advantage?
Future proofing: the function could start getting used elsewhere so having the error message there makes sense. Feel free to disagree.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79375/new/
https://reviews.llvm.org/D79375
More information about the llvm-commits
mailing list