search for: checkstrings

Displaying 3 results from an estimated 3 matches for "checkstrings".

2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...+ IsCheckHWM = true; } else { Buffer = Buffer.substr(1); continue; @@ -555,6 +594,34 @@ static bool ReadCheckFile(SourceMgr &SM, // Scan ahead to the end of line. size_t EOL = Buffer.find_first_of("\n\r"); + if (IsCheckPush) { + if (CheckStrings.empty()) { + CheckStrings.push_back(CheckString(Pattern(Pattern::MatchCurrent), + SMLoc::getFromPointer(Buffer.data()), + false)); + } + CheckStrings.back().PushPos++; + continue; + } + +...
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...+ IsCheckPop = true; } else { Buffer = Buffer.substr(1); continue; @@ -555,6 +590,22 @@ static bool ReadCheckFile(SourceMgr &SM, // Scan ahead to the end of line. size_t EOL = Buffer.find_first_of("\n\r"); + if (IsCheckPush) { + if (CheckStrings.empty()) { + CheckStrings.push_back(CheckString(Pattern(Pattern::MatchCurrent), + SMLoc::getFromPointer(Buffer.data()), + false)); + } + CheckStrings.back().PushPos++; + continue; + } + +...
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