diff options
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 46821ec..3ee7c5a 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -44,6 +44,14 @@ static cl::alias CheckPrefixesAlias( cl::desc( "Alias for -check-prefix permitting multiple comma separated values")); +static cl::list<std::string> CommentPrefixes( + "comment-prefixes", cl::CommaSeparated, cl::Hidden, + cl::desc("Comma-separated list of comment prefixes to use from check file\n" + "(defaults to 'COM,RUN'). Please avoid using this feature in\n" + "LLVM's LIT-based test suites, which should be easier to\n" + "maintain if they all follow a consistent comment style. This\n" + "feature is meant for non-LIT test suites using FileCheck.")); + static cl::opt<bool> NoCanonicalizeWhiteSpace( "strict-whitespace", cl::desc("Do not treat all horizontal whitespace as equivalent")); @@ -279,6 +287,8 @@ std::string GetCheckTypeAbbreviation(Check::FileCheckType Ty) { return "label"; case Check::CheckEmpty: return "empty"; + case Check::CheckComment: + return "com"; case Check::CheckEOF: return "eof"; case Check::CheckBadNot: @@ -565,6 +575,9 @@ int main(int argc, char **argv) { for (StringRef Prefix : CheckPrefixes) Req.CheckPrefixes.push_back(Prefix); + for (StringRef Prefix : CommentPrefixes) + Req.CommentPrefixes.push_back(Prefix); + for (StringRef CheckNot : ImplicitCheckNot) Req.ImplicitCheckNot.push_back(CheckNot); |