Home | History | Annotate | Download | only in FileCheck

Lines Matching defs:File

1 //===- FileCheck.cpp - Check that File's Contents match what is expected --===//
5 // This file is distributed under the University of Illinois Open Source
10 // FileCheck does a line-by line check of a file that validates whether it
14 // the file matched the expected contents, and exit status of 1 if it did not
39 CheckFilename(cl::Positional, cl::desc("<check-file>"), cl::Required);
42 InputFilename("input-file", cl::desc("File to check (defaults to stdin)"),
47 cl::desc("Prefix to use from check file (defaults to 'CHECK')"));
67 cl::desc("Allow the input file to be empty. This is useful when making\n"
92 /// MatchEOF - When set, this pattern only matches the end of file. This is
136 /// reports, and LineNumber is the line number in the input file from which
615 /// CheckString - This is a check that we found in the input file.
623 /// Loc - The location in the match file that the check string was specified.
632 /// file).
659 /// Canonicalize whitespaces in the input file. Line endings are replaced
863 /// ReadCheckFile - Read the check file, which specifies the sequence of
871 errs() << "Could not open check file '" << CheckFilename
881 // Find all instances of CheckPrefix followed by : in the file.
1121 "CHECK-NEXT can't be the first check in a file");
1160 "CHECK-SAME can't be the first check in a file");
1329 // Read the expected strings from the check file.
1334 // Open the file to check and add it to SourceMgr.
1338 errs() << "Could not open input file '" << InputFilename
1342 std::unique_ptr<MemoryBuffer> &File = FileOrErr.get();
1344 if (File->getBufferSize() == 0 && !AllowEmptyInput) {
1350 // Remove duplicate spaces in the input file if requested.
1353 CanonicalizeInputFile(std::move(File), NoCanonicalizeWhiteSpace);
1356 // file.