14 FailureOr<std::tuple<StringRef, int64_t, int64_t>>
22 diag(
"error: initializing FileLineColLocBreakpoint with empty file name");
28 auto [fileLine, colStr] = str.rsplit(
':');
29 auto [file, lineStr] = fileLine.rsplit(
':');
31 int64_t line = -1, col = -1;
32 if (lineStr.empty()) {
36 if (!colStr.empty() && colStr.getAsInteger(0, line))
39 if (lineStr.getAsInteger(0, line)) {
43 if (colStr.getAsInteger(0, line))
48 if (colStr.getAsInteger(0, col)) {
54 return std::tuple<StringRef, int64_t, int64_t>{file, line, col};
static std::string diag(const llvm::Value &value)
static FailureOr< std::tuple< StringRef, int64_t, int64_t > > parseFromString(StringRef str, llvm::function_ref< void(Twine)> diag=[](Twine) {})
Parse a string representation in the form of "<file>:<line>:<col>".
Include the generated interface declarations.