Displaying 5 results from an estimated 5 matches for "getfrompoint".
Did you mean:
getfrompointer
2012 Sep 07
1
[LLVMdev] teaching FileCheck to handle variations in order
...ceMgr &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;
+ }
+
+ if (IsCheckPop) {
+ NextCheckPopLoc = SMLoc::getFromPointer(CheckPrefixStart);
+ NextCheckPopPos++;
+ continue;
+ }
+
+ if (IsChe...
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
2012 Sep 07
5
[LLVMdev] teaching FileCheck to handle variations in order
...ceMgr &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;
+ }
+
+ if (IsCheckPop) {
+ NextCheckPopLoc = SMLoc::getFromPointer(CheckPrefixStart);
+ NextCheckPopPos++;
+ continue;
+ }
+
// Rememb...
2006 Dec 21
0
[792] trunk/wxruby2/swig/classes/include/wxDisplay.h: Added missing class, but a wrapper needs some tweaking
...gt;@@ -0,0 +1,27 @@
</span><ins>+// Copyright 2004-2006 by Kevin Smith
+// released under the MIT-style wxruby2 license
+
+#if !defined(_wxDisplay_h_)
+#define _wxDisplay_h_
+class wxDisplay
+{
+public:
+ wxDisplay(size_t index = 0);
+ static size_t GetCount();
+ static int GetFromPoint(const wxPoint& pt);
+ static int GetFromWindow(wxWindow *window);
+ virtual bool IsOk() const { return true; }
+ virtual wxRect GetGeometry() const = 0;
+ virtual wxString GetName() const = 0;
+ virtual bool IsPrimary() const { return m_index == 0; }
+ virtual wxArrayVideoMode...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...if (HashTok.isNot(AsmToken::Hash))
return Error(HashTok.getLoc(), "'#' expected");
- Parser.Lex(); // Eat hash token.
+ Lex(); // Eat hash token.
- if (getParser().ParseExpression(Offset))
+ if (ParseExpression(Offset))
return true;
- E = SMLoc::getFromPointer(Parser.getTok().getLoc().getPointer() - 1);
+ E = SMLoc::getFromPointer(getTok().getLoc().getPointer() - 1);
}
return false;
}
@@ -514,7 +506,7 @@ bool ARMAsmParser::ParseMemoryOffsetReg(bool &Negative,
bool ARMAsmParser::ParseShift(ShiftType &St,...