|
Revision tags: llvmorg-3.6.1, llvmorg-3.6.1-rc1 |
|
| #
3e3ef2f2 |
| 29-Apr-2015 |
Chris Bieneman <[email protected]> |
[NFC] Updating FileCheck to reduce the std::vector interface used via cl::list.
llvm-svn: 236164
|
|
Revision tags: llvmorg-3.5.2, llvmorg-3.5.2-rc1 |
|
| #
7dfb92b9 |
| 12-Mar-2015 |
Mehdi Amini <[email protected]> |
Fix FileCheck: substr() expect the length of the string as 2nd arg
The code assumed that substr() was taking start,end while it takes start,length.
From: Mehdi Amini <[email protected]> llvm-sv
Fix FileCheck: substr() expect the length of the string as 2nd arg
The code assumed that substr() was taking start,end while it takes start,length.
From: Mehdi Amini <[email protected]> llvm-svn: 231988
show more ...
|
| #
01ac1707 |
| 26-Feb-2015 |
Duncan P. N. Exon Smith <[email protected]> |
FileCheck: Add CHECK-SAME
Add `CHECK-SAME`, which requires that the pattern matches on the *same* line as the previous `CHECK`/`CHECK-NEXT` -- in other words, no newline is allowed in the skipped re
FileCheck: Add CHECK-SAME
Add `CHECK-SAME`, which requires that the pattern matches on the *same* line as the previous `CHECK`/`CHECK-NEXT` -- in other words, no newline is allowed in the skipped region. This is similar to `CHECK-NEXT`, which requires exactly 1 newline in the skipped region.
My motivation is to simplify checking the long lines of LLVM assembly for the new debug info hierarchy. This allows CHECK sequences like the following:
CHECK: ![[REF]] = !SomeMDNode( CHECK-SAME: file: ![[FILE:[0-9]+]] CHECK-SAME: otherField: 93{{[,)]}}
which is equivalent to:
CHECK: ![[REF]] = !SomeMDNode({{.*}}file: ![[FILE:[0-9]+]]{{.*}}otherField: 93{{[,)]}}
While this example just has two fields, many nodes in debug info have more than that. `CHECK-SAME` will keep the logic easy to follow.
Morever, it enables interleaving `CHECK-NOT`s without allowing newlines. Consider the following:
CHECK: ![[REF]] = !SomeMDNode( CHECK-SAME: file: ![[FILE:[0-9]+]] CHECK-NOT: unexpectedField: CHECK-SAME: otherField: 93{{[,)]}} CHECK-NOT: otherUnexpectedField: CHECK-SAME: )
which doesn't seem to have an equivalent `CHECK` line.
llvm-svn: 230612
show more ...
|
|
Revision tags: llvmorg-3.6.0, llvmorg-3.6.0-rc4, llvmorg-3.6.0-rc3, llvmorg-3.6.0-rc2, llvmorg-3.6.0-rc1, llvmorg-3.5.1, llvmorg-3.5.1-rc2, llvmorg-3.5.1-rc1 |
|
| #
0356975c |
| 19-Nov-2014 |
David Blaikie <[email protected]> |
Make StringSet::insert return pair<iterator, bool> like other self-associative containers
StringSet is still a bit dodgy in that it exposes the raw iterator of the StringMap parent, which exposes th
Make StringSet::insert return pair<iterator, bool> like other self-associative containers
StringSet is still a bit dodgy in that it exposes the raw iterator of the StringMap parent, which exposes the weird detail that StringSet actually has a 'value'... but anyway, this is useful for a handful of clients that want to reference the newly inserted/persistent string data in the StringSet/Map/Entry/thing.
llvm-svn: 222302
show more ...
|
|
Revision tags: llvmorg-3.5.0, llvmorg-3.5.0-rc4 |
|
| #
3560ff2c |
| 27-Aug-2014 |
Rafael Espindola <[email protected]> |
Return a std::unique_ptr when creating a new MemoryBuffer.
llvm-svn: 216583
|
| #
1961f14c |
| 21-Aug-2014 |
David Blaikie <[email protected]> |
Explicitly pass ownership of the MemoryBuffer to AddNewSourceBuffer using std::unique_ptr
llvm-svn: 216223
|
|
Revision tags: llvmorg-3.5.0-rc3 |
|
| #
1b9f936f |
| 07-Aug-2014 |
Justin Bogner <[email protected]> |
FileCheck: Add a flag to allow checking empty input
Currently FileCheck errors out on empty input. This is usually the right thing to do, but makes testing things like "this command does not emit so
FileCheck: Add a flag to allow checking empty input
Currently FileCheck errors out on empty input. This is usually the right thing to do, but makes testing things like "this command does not emit some error message" hard to test. This usually leads to people using "command 2>&1 | count 0" instead, and then the bots that use guard malloc fail a few hours later.
By adding a flag to FileCheck that allows empty inputs, we can make tests that consist entirely of "CHECK-NOT" lines feasible.
llvm-svn: 215127
show more ...
|
|
Revision tags: llvmorg-3.5.0-rc2 |
|
| #
3f6481d0 |
| 01-Aug-2014 |
Rafael Espindola <[email protected]> |
Remove some calls to std::move.
Instead of moving out the data in a ErrorOr<std::unique_ptr<Foo>>, get a reference to it.
Thanks to David Blaikie for the suggestion.
llvm-svn: 214516
|
| #
ce5dd1ac |
| 01-Aug-2014 |
Rafael Espindola <[email protected]> |
Simplify the code a bit with std::unique_ptr.
llvm-svn: 214514
|
| #
24412b14 |
| 29-Jul-2014 |
Eli Bendersky <[email protected]> |
Fix FileCheck crash when empty prefix is passed.
llvm-svn: 214210
|
|
Revision tags: llvmorg-3.5.0-rc1 |
|
| #
56ccdbbd |
| 11-Jul-2014 |
Alexander Kornienko <[email protected]> |
Add FileCheck -implicit-check-not option to allow stricter tests without adding too many CHECK-NOTs manually.
Summary: Add FileCheck -implicit-check-not option which allows specifying a pattern that
Add FileCheck -implicit-check-not option to allow stricter tests without adding too many CHECK-NOTs manually.
Summary: Add FileCheck -implicit-check-not option which allows specifying a pattern that should only occur in the input when explicitly matched by a positive check. This feature allows checking tool diagnostics in a way clang -verify does it for compiler diagnostics.
The option has been tested on a number of clang-tidy checks, I'll post a link to the clang-tidy patch to this thread.
Once there's an agreement on the general direction, I can add tests and documentation.
Reviewers: djasper, bkramer
Reviewed By: bkramer
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D4462
llvm-svn: 212810
show more ...
|
| #
adf21f2a |
| 06-Jul-2014 |
Rafael Espindola <[email protected]> |
Update the MemoryBuffer API to use ErrorOr.
llvm-svn: 212405
|
| #
e69170a1 |
| 26-Jun-2014 |
Alp Toker <[email protected]> |
Revert "Introduce a string_ostream string builder facilty"
Temporarily back out commits r211749, r211752 and r211754.
llvm-svn: 211814
|
| #
61471738 |
| 26-Jun-2014 |
Alp Toker <[email protected]> |
Introduce a string_ostream string builder facilty
string_ostream is a safe and efficient string builder that combines opaque stack storage with a built-in ostream interface.
small_string_ostream<by
Introduce a string_ostream string builder facilty
string_ostream is a safe and efficient string builder that combines opaque stack storage with a built-in ostream interface.
small_string_ostream<bytes> additionally permits an explicit stack storage size other than the default 128 bytes to be provided. Beyond that, storage is transferred to the heap.
This convenient class can be used in most places an std::string+raw_string_ostream pair or SmallString<>+raw_svector_ostream pair would previously have been used, in order to guarantee consistent access without byte truncation.
The patch also converts much of LLVM to use the new facility. These changes include several probable bug fixes for truncated output, a programming error that's no longer possible with the new interface.
llvm-svn: 211749
show more ...
|
| #
c049c657 |
| 13-Jun-2014 |
Rafael Espindola <[email protected]> |
Remove the last uses of 'using std::error_code'
This finishes the transition to std::error_code.
llvm-svn: 210877
|
| #
3acea398 |
| 12-Jun-2014 |
Rafael Espindola <[email protected]> |
Don't use 'using std::error_code' in include/llvm.
This should make sure that most new uses use the std prefix.
llvm-svn: 210835
|
| #
a6e9c3e4 |
| 12-Jun-2014 |
Rafael Espindola <[email protected]> |
Remove system_error.h.
This is a minimal change to remove the header. I will remove the occurrences of "using std::error_code" in a followup patch.
llvm-svn: 210803
|
| #
66f09ad0 |
| 08-Jun-2014 |
Craig Topper <[email protected]> |
[C++11] Use 'nullptr'.
llvm-svn: 210442
|
|
Revision tags: llvmorg-3.4.2, llvmorg-3.4.2-rc1, llvmorg-3.4.1, llvmorg-3.4.1-rc2, llvmorg-3.4.1-rc1 |
|
| #
592fe880 |
| 07-Apr-2014 |
Richard Smith <[email protected]> |
When a CHECK-NEXT fails because there was no match on the next line, include the non-matching next line in the diagnostic to make the problem more obvious.
llvm-svn: 205725
|
| #
56440fd8 |
| 06-Mar-2014 |
Ahmed Charles <[email protected]> |
Replace OwningPtr<T> with std::unique_ptr<T>.
This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which ha
Replace OwningPtr<T> with std::unique_ptr<T>.
This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary.
llvm-svn: 203083
show more ...
|
| #
96c9d95f |
| 05-Mar-2014 |
Ahmed Charles <[email protected]> |
[C++11] Replace OwningPtr::take() with OwningPtr::release().
llvm-svn: 202957
|
| #
81e5cd9e |
| 03-Jan-2014 |
Adrian Prantl <[email protected]> |
FileCheck: Print a nice error message for missing closing ']' in regex vars.
llvm-svn: 198449
|
|
Revision tags: llvmorg-3.4.0, llvmorg-3.4.0-rc3 |
|
| #
6f4f77b7 |
| 12-Dec-2013 |
Hans Wennborg <[email protected]> |
Expose FileCheck's AddFixedStringToRegEx as Regex::escape
Both FileCheck and clang's -verify need to escape strings for regexes, so let's expose this as a utility in the Regex class.
llvm-svn: 1970
Expose FileCheck's AddFixedStringToRegEx as Regex::escape
Both FileCheck and clang's -verify need to escape strings for regexes, so let's expose this as a utility in the Regex class.
llvm-svn: 197096
show more ...
|
|
Revision tags: llvmorg-3.4.0-rc2 |
|
| #
43b5f572 |
| 20-Nov-2013 |
Daniel Sanders <[email protected]> |
FileCheck: fix a bug with multiple --check-prefix options. Similar to r194565
Summary: Directives are being ignored, when they occur between a partial-word false match and any match on another prefi
FileCheck: fix a bug with multiple --check-prefix options. Similar to r194565
Summary: Directives are being ignored, when they occur between a partial-word false match and any match on another prefix.
For example, with FOO and BAR prefixes: _FOO FOO: foo BAR: bar FileCheck incorrectly matches: fog bar
This happens because FOO falsely matched as a partial word at '_FOO' and was ignored while BAR matched at 'BAR:'. The match of BAR is incorrectly returned as the 'first match' causing the FOO directive to be discarded.
Fixed this the same way as r194565 (D2166) did for a similar test case. The partial-word false match should be counted as a match for the purposes of finding the first match of a prefix, but should be returned as a false match using CheckTy::CheckNone so that it isn't treated as a directive.
Fixes PR17995
Reviewers: samsonov, arsenm
Reviewed By: samsonov
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2228
llvm-svn: 195248
show more ...
|
|
Revision tags: llvmorg-3.4.0-rc1 |
|
| #
a7181a1b |
| 13-Nov-2013 |
Alexey Samsonov <[email protected]> |
FileCheck: fix matching of one check-prefix is a prefix of another
Summary: Fix a case when "FileCheck --check-prefix=CHECK --check-prefix=CHECKER" would silently ignore check-lines of the form: C
FileCheck: fix matching of one check-prefix is a prefix of another
Summary: Fix a case when "FileCheck --check-prefix=CHECK --check-prefix=CHECKER" would silently ignore check-lines of the form: CHECKER: foo
Reviewers: dsanders
Reviewed By: dsanders
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2168
llvm-svn: 194577
show more ...
|