Lines Matching refs:Line
132 static bool ParseError(const char *Err, const std::string &Line) { in ParseError() argument
133 Printf("DataFlowTrace: parse error: %s: Line: %s\n", Err, Line.c_str()); in ParseError()
139 static bool ParseDFTLine(const std::string &Line, size_t *FunctionNum, in ParseDFTLine() argument
141 if (!Line.empty() && Line[0] != 'F') in ParseDFTLine()
143 size_t SpacePos = Line.find(' '); in ParseDFTLine()
145 return ParseError("no space in the trace line", Line); in ParseDFTLine()
146 if (Line.empty() || Line[0] != 'F') in ParseDFTLine()
147 return ParseError("the trace line doesn't start with 'F'", Line); in ParseDFTLine()
148 *FunctionNum = std::atol(Line.c_str() + 1); in ParseDFTLine()
149 const char *Beg = Line.c_str() + SpacePos + 1; in ParseDFTLine()
150 const char *End = Line.c_str() + Line.size(); in ParseDFTLine()
155 return ParseError("the trace should contain only 0 or 1", Line); in ParseDFTLine()