Index: llvm/test/FileCheck/verbose.txt =================================================================== --- llvm/test/FileCheck/verbose.txt +++ llvm/test/FileCheck/verbose.txt @@ -1,10 +1,33 @@ -; RUN: %ProtectFileCheckOutput FileCheck -dump-input=never -input-file %s %s 2>&1 \ +; RUN: %ProtectFileCheckOutput \ +; RUN: FileCheck -dump-input=never -input-file %s %s 2>&1 \ ; RUN: | FileCheck -check-prefix QUIET --allow-empty %s -; RUN: %ProtectFileCheckOutput FileCheck -dump-input=never -v -input-file %s %s 2>&1 \ + +; RUN: %ProtectFileCheckOutput \ +; RUN: FileCheck -dump-input=never -v -input-file %s %s 2>&1 \ +; RUN: | FileCheck --strict-whitespace -check-prefix V %s + +; RUN: %ProtectFileCheckOutput \ +; RUN: FileCheck -dump-input=never -vv -input-file %s %s 2>&1 \ +; RUN: | FileCheck --strict-whitespace -check-prefixes V,VV %s + +; RUN: %ProtectFileCheckOutput \ +; RUN: FileCheck -dump-input=never -v -v -input-file %s %s 2>&1 \ ; RUN: | FileCheck --strict-whitespace -check-prefix V %s -; RUN: %ProtectFileCheckOutput FileCheck -dump-input=never -vv -input-file %s %s 2>&1 \ + +; RUN: %ProtectFileCheckOutput \ +; RUN: FileCheck -dump-input=never -vv -vv -input-file %s %s 2>&1 \ ; RUN: | FileCheck --strict-whitespace -check-prefixes V,VV %s +; RUN: %ProtectFileCheckOutput \ +; RUN: FileCheck -dump-input=never -v -vv -input-file %s %s 2>&1 \ +; RUN: | FileCheck --strict-whitespace -check-prefixes V,VV %s + +; RUN: %ProtectFileCheckOutput \ +; RUN: FileCheck -dump-input=never -vv -v -input-file %s %s 2>&1 \ +; RUN: | FileCheck --strict-whitespace -check-prefixes V,VV %s + +; END. + foo bar CHECK: foo Index: llvm/utils/FileCheck/FileCheck.cpp =================================================================== --- llvm/utils/FileCheck/FileCheck.cpp +++ llvm/utils/FileCheck/FileCheck.cpp @@ -97,12 +97,12 @@ "non-overlapping CHECK-DAG implementation.\n")); static cl::opt Verbose( - "v", cl::init(false), + "v", cl::init(false), cl::ZeroOrMore, cl::desc("Print directive pattern matches, or add them to the input dump\n" "if enabled.\n")); static cl::opt VerboseVerbose( - "vv", cl::init(false), + "vv", cl::init(false), cl::ZeroOrMore, cl::desc("Print information helpful in diagnosing internal FileCheck\n" "issues, or add it to the input dump if enabled. Implies\n" "-v.\n"));