History log of /llvm-project/llvm/utils/FileCheck/FileCheck.cpp (Results 151 – 175 of 208)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 061d2baa 02-Dec-2012 Eli Bendersky <eliben@google.com>

Fix a bug in FileCheck that wouldn't let define variables as follows:

; CHECK: [[VAR:[a-z]]]

The problem was that to find the end of the regex var definition, it was
simplistically looking for the

Fix a bug in FileCheck that wouldn't let define variables as follows:

; CHECK: [[VAR:[a-z]]]

The problem was that to find the end of the regex var definition, it was
simplistically looking for the next ]] and finding the incorrect one. A
better approach is to count nesting of brackets (taking escaping into
account). This way the brackets that are part of the regex can be discovered
and skipped properly, and the ]] ending is detected in the right place.

llvm-svn: 169109

show more ...


# e8b8f1bc 01-Dec-2012 Eli Bendersky <eliben@google.com>

Support referencing variables defined on the same line.

See http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121126/157198.html
and related discussions.

llvm-svn: 169101


# 43d50d4a 30-Nov-2012 Eli Bendersky <eliben@google.com>

Clean up whitespace and add comments

llvm-svn: 169002


# 8e1c6477 30-Nov-2012 Eli Bendersky <eliben@google.com>

Make FileCheck return 2 in case of an error as documented,
instead of 1 or true (?!)

llvm-svn: 169001


Revision tags: llvmorg-3.2.0-rc2
# 26491446 15-Nov-2012 Dmitri Gribenko <gribozavr@gmail.com>

FileCheck: remove useless 'continue' at the end of a 'while(){}' loop.

llvm-svn: 168048


# 92987fb3 14-Nov-2012 Alexander Kornienko <alexfh@google.com>

Support for [[@LINE]], [[@LINE+<offset>]], [[@LINE-<offset>]] expressions in
FileCheck.

llvm-svn: 167978


Revision tags: llvmorg-3.2.0-rc1
# 6e9fcd62 21-Sep-2012 Dmitri Gribenko <gribozavr@gmail.com>

Clarify comment.

llvm-svn: 164371


# ef878a83 18-Sep-2012 Benjamin Kramer <benny.kra@googlemail.com>

FileCheck: Fix off-by-one bug that made CHECK-NOT: ignore the next character after the colon.

llvm-svn: 164165


# d9466967 08-Sep-2012 Ted Kremenek <kremenek@apple.com>

Revert "Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions."

Turns out I did not need it after all. If we find a use for it in the future, w

Revert "Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions."

Turns out I did not need it after all. If we find a use for it in the future, we
can resurrect it.

llvm-svn: 163457

show more ...


# 1cb637cc 07-Sep-2012 Ted Kremenek <kremenek@apple.com>

Add -exact-match option to FileCheck to allow clients to do exact matches without using regular expressions.

llvm-svn: 163371


Revision tags: llvmorg-3.1.0, llvmorg-3.1.0-rc3, llvmorg-3.1.0-rc2, llvmorg-3.1.0-rc1, llvmorg-3.0.0, llvmorg-3.0.0-rc4, llvmorg-3.0.0-rc3, llvmorg-3.0.0-rc2, llvmorg-3.0.0-rc1
# 03b80a40 16-Oct-2011 Chris Lattner <sabre@nondot.org>

Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a
string, pass it around as an enum.

llvm-svn: 142107


# a3a06810 16-Oct-2011 Chris Lattner <sabre@nondot.org>

Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance
the X86 asmparser to produce ranges in the one case that was annoying me, for example:

test.s:10:15: error: in

Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance
the X86 asmparser to produce ranges in the one case that was annoying me, for example:

test.s:10:15: error: invalid operand for instruction
movl 0(%rax), 0(%edx)
^~~~~~~

It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use
ranges where appropriate if someone is interested.

llvm-svn: 142106

show more ...


# e53c95f1 09-Apr-2011 Chris Lattner <sabre@nondot.org>

fix PR9629 - We were lowering regexes like a{{b|c}}d into ab|cd, which
is substantially different than a(b|c)d. Form the latter regex instead.
This found a few problems in the testsuite, which serve

fix PR9629 - We were lowering regexes like a{{b|c}}d into ab|cd, which
is substantially different than a(b|c)d. Form the latter regex instead.
This found a few problems in the testsuite, which serves as its test.

llvm-svn: 129196

show more ...


# 53e0679d 09-Apr-2011 Chris Lattner <sabre@nondot.org>

various cleanups, no functionality change.

llvm-svn: 129192


Revision tags: llvmorg-2.9.0, llvmorg-2.9.0-rc3, llvmorg-2.9.0-rc2, llvmorg-2.9.0-rc1
# b692bed7 09-Feb-2011 Chris Lattner <sabre@nondot.org>

emit a specific error when the input file is empty. This fixes
an annoyance of mine when working on tests: if the input .ll file
is broken, opt outputs an error and generates an empty file. FileCh

emit a specific error when the input file is empty. This fixes
an annoyance of mine when working on tests: if the input .ll file
is broken, opt outputs an error and generates an empty file. FileCheck
then emits its "ooh I couldn't find the first CHECK line, scanning
from ..." which obfuscates the actual problem.

llvm-svn: 125193

show more ...


# 39a0ffc3 16-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com>

MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.

llvm-svn: 121958


# 7b6fef82 09-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com>

Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.

llvm-svn: 121379


# 447762da 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com>

Merge System into Support.

llvm-svn: 120298


# fd781bf0 14-Nov-2010 NAKAMURA Takumi <geek4civic@gmail.com>

FileCheck: Eliminate DOSish \r from input file.

It can pass two tests below on Win32.
- Clang :: CodeGenCXX/dyncast.cpp
- LLVM :: CodeGen/ARM/globals.ll

llvm-svn: 119023


# eba55822 15-Oct-2010 Jakob Stoklund Olesen <stoklund@2pi.dk>

Teach FileCheck to handle trailing CHECK-NOT patterns.

A CHECK-NOT pattern without a following CHECK pattern simply checks that the
pattern doesn't match before the end of the input file.

You can e

Teach FileCheck to handle trailing CHECK-NOT patterns.

A CHECK-NOT pattern without a following CHECK pattern simply checks that the
pattern doesn't match before the end of the input file.

You can even have only CHECK-NOT patterns to check that strings appear nowhere
in the input file.

llvm-svn: 116592

show more ...


Revision tags: llvmorg-2.8.0, llvmorg-2.8.0-rc3, llvmorg-2.8.0-rc2, llvmorg-2.8.0-rc1, llvmorg-2.8.0-rc0
# defcda2e 20-Aug-2010 Mikhail Glushenkov <foldr@codedgers.com>

Trailing whitespace.

llvm-svn: 111656


Revision tags: llvmorg-2.7.0
# 0e45d24a 05-Apr-2010 Chris Lattner <sabre@nondot.org>

stringref-ize the MemoryBuffer::get apis. This requires
a co-committed clang patch.

llvm-svn: 100485


# c069cc8e 19-Mar-2010 Daniel Dunbar <daniel@zuster.org>

FileCheck: Don't print "possibly intended match" line if it would match the
"scanning from here" one.

llvm-svn: 98971


# e9aa36c8 30-Jan-2010 Daniel Dunbar <daniel@zuster.org>

FileCheck: When looking for "possible matches", only compare against the prefix
line. Turns out edit_distance can be slow if the string we are scanning for
happens to be quite large.

llvm-svn: 94860


# 2bf486eb 29-Jan-2010 Dan Gohman <gohman@apple.com>

Minor code cleanup.

llvm-svn: 94848


123456789