Displaying 3 results from an estimated 3 matches for "ischecknext".
2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...tchCurrent:
+ MatchLen = 0;
+ return 0;
+ case MatchEndOfFile:
MatchLen = 0;
return Buffer.size();
+ default:
+ assert("Unknown match type");
+ break;
}
// If this is a fixed string pattern, just match it now.
@@ -447,6 +468,9 @@ struct CheckString {
/// IsCheckNext - This is true if this is a CHECK-NEXT: directive (as opposed
/// to a CHECK: directive.
bool IsCheckNext;
+ int PushPos;
+ int PopPos;
+ SMLoc PopLoc;
/// NotStrings - These are all of the strings that are disallowed from
/// occurring between this match string and the previous on...
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...tchCurrent:
+ MatchLen = 0;
+ return 0;
+ case MatchEndOfFile:
MatchLen = 0;
return Buffer.size();
+ default:
+ assert("Unknown match type");
+ break;
}
// If this is a fixed string pattern, just match it now.
@@ -447,6 +468,9 @@ struct CheckString {
/// IsCheckNext - This is true if this is a CHECK-NEXT: directive (as opposed
/// to a CHECK: directive.
bool IsCheckNext;
+ int PushPos;
+ int PopPos;
+ SMLoc PopLoc;
/// NotStrings - These are all of the strings that are disallowed from
/// occurring between this match string and the previous on...
2012 Sep 07
0
[LLVMdev] teaching FileCheck to handle variations in order
On 9/7/2012 7:20 AM, Matthew Curtis wrote:
>
> The attached patch implements one possible solution. It introduces a
> position stack and a couple of directives:
>
> * 'CHECK-PUSH:' pushes the current match position onto the stack.
> * 'CHECK-POP:' pops the top value off of the stack and uses it to set
> the current match position.
>
> The above