Searched refs:LastPos (Results 1 – 8 of 8) sorted by relevance
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 1066 size_t LastPos = 0; in Check() local 1075 LastPos = CheckDag(SM, Buffer, NotStrings, VariableTable); in Check() 1076 if (LastPos == StringRef::npos) in Check() 1081 StringRef MatchBuffer = Buffer.substr(LastPos); in Check() 1091 StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos); in Check() 1109 return LastPos + MatchPos; in Check() 1207 size_t LastPos = 0; in CheckDag() local 1208 size_t StartPos = LastPos; in CheckDag() 1237 if (MatchPos < LastPos) { in CheckDag() 1243 SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + LastPos), in CheckDag() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/refactor/ |
D | Rename.cpp | 717 Position LastPos{0, 0}; in buildRenameEdit() local 721 assert(LastPos <= P && "malformed input"); in buildRenameEdit() 723 P.line - LastPos.line, in buildRenameEdit() 724 P.line > LastPos.line ? P.character : P.character - LastPos.character}; in buildRenameEdit() 730 LastPos = P; in buildRenameEdit()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | FileCheck.cpp | 1414 size_t LastPos = 0; in Check() local 1423 LastPos = CheckDag(SM, Buffer, NotStrings, Req, Diags); in Check() 1424 if (LastPos == StringRef::npos) in Check() 1429 size_t LastMatchEnd = LastPos; in Check() 1450 FirstMatchPos = LastPos + MatchPos; in Check() 1461 size_t MatchPos = FirstMatchPos - LastPos; in Check() 1462 StringRef MatchBuffer = Buffer.substr(LastPos); in Check() 1463 StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos); in Check()
|
/external/llvm-project/llvm/lib/FileCheck/ |
D | FileCheck.cpp | 2115 size_t LastPos = 0; in Check() local 2124 LastPos = CheckDag(SM, Buffer, NotStrings, Req, Diags); in Check() 2125 if (LastPos == StringRef::npos) in Check() 2130 size_t LastMatchEnd = LastPos; in Check() 2151 FirstMatchPos = LastPos + MatchPos; in Check() 2162 size_t MatchPos = FirstMatchPos - LastPos; in Check() 2163 StringRef MatchBuffer = Buffer.substr(LastPos); in Check() 2164 StringRef SkippedRegion = Buffer.substr(LastPos, MatchPos); in Check()
|
/external/llvm-project/clang/lib/Format/ |
D | Format.cpp | 2129 size_t Pos = 0, LastPos = 0; in replaceCRLF() local 2132 Pos = Code.find("\r\n", LastPos); in replaceCRLF() 2133 if (Pos == LastPos) { in replaceCRLF() 2134 LastPos++; in replaceCRLF() 2138 NewCode += Code.substr(LastPos); in replaceCRLF() 2141 NewCode += Code.substr(LastPos, Pos - LastPos) + "\n"; in replaceCRLF() 2142 LastPos = Pos + 2; in replaceCRLF()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 227 uint32_t Pos = 0, LastPos = 0; in stripDirPrefix() local 231 LastPos = Pos; in stripDirPrefix() 237 return PathNameStr.substr(LastPos); in stripDirPrefix()
|
/external/llvm-project/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 231 uint32_t Pos = 0, LastPos = 0; in stripDirPrefix() local 235 LastPos = Pos; in stripDirPrefix() 241 return PathNameStr.substr(LastPos); in stripDirPrefix()
|
/external/llvm-project/llvm/unittests/IR/ |
D | ConstantRangeTest.cpp | 1245 int LastPos = Results.find_next(Bias) - Bias; in TEST_F() local 1249 else if (LastPos == 1) in TEST_F() 1250 --LastPos; in TEST_F() 1254 APInt WMin(Bits, LastPos); in TEST_F()
|