/external/swiftshader/third_party/subzero/src/ |
D | IceMangling.cpp | 38 void incrementSubstitutions(ManglerVector &OldName) { in incrementSubstitutions() argument 41 ManglerVector NewName(OldName.size() * 2); in incrementSubstitutions() 44 const size_t OldLen = OldName.size(); in incrementSubstitutions() 46 if (OldName[OldPos] == '\0') in incrementSubstitutions() 48 if (OldName[OldPos] == 'S') { in incrementSubstitutions() 54 char Ch = OldName[Last]; in incrementSubstitutions() 67 NewName[NewPos++] = OldName[OldPos++]; // 'S' in incrementSubstitutions() 71 assert(OldName[OldPos - 1] == 'S'); in incrementSubstitutions() 72 assert(OldName[OldPos + Length] == '_'); in incrementSubstitutions() 85 char Ch = OldName[OldPos + Offset]; in incrementSubstitutions() [all …]
|
/external/llvm-project/clang/unittests/Rename/ |
D | RenameClassTest.cpp | 196 std::string OldName = Param.OldName.empty() ? "a::Foo" : Param.OldName; in TEST_P() local 198 std::string Actual = runClangRenameOnCode(Param.Before, OldName, NewName); in TEST_P() 306 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P() 402 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
|
D | ClangRenameTest.h | 40 std::string OldName; member 50 llvm::StringRef OldName, in runClangRenameOnCode() argument 61 tooling::USRFindingAction FindingAction({}, {std::string(OldName)}, false); in runClangRenameOnCode()
|
D | RenameEnumTest.cpp | 149 assert(!Param.OldName.empty()); in TEST_P() 152 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
|
D | RenameMemberTest.cpp | 161 assert(!Param.OldName.empty()); in TEST_P() 164 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
|
D | RenameAliasTest.cpp | 197 assert(!Param.OldName.empty()); in TEST_P() 200 runClangRenameOnCode(Param.Before, Param.OldName, Param.NewName); in TEST_P()
|
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/ |
D | OverlappingReplacementsTest.cpp | 68 virtual std::string newName(StringRef OldName) = 0; 120 std::string newName(StringRef OldName) override { in newName() argument 121 return "toma" + OldName.substr(4).str(); in newName() 130 std::string newName(StringRef OldName) override { in newName() argument 131 return OldName.substr(0, OldName.size() - 4).str() + "melo"; in newName()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | DefineInline.cpp | 295 llvm::StringRef OldName = OldDecl->getName(); in renameParameters() local 301 if (OldName.empty()) in renameParameters() 321 OldName, NewName, Err); in renameParameters()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnroll.cpp | 114 StringRef OldName = BB->getName(); in foldBlockIntoPredecessor() local 137 if (!OldName.empty() && !OnlyPred->hasName()) in foldBlockIntoPredecessor() 138 OnlyPred->setName(OldName); in foldBlockIntoPredecessor()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2279 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local 2281 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr() 2283 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr() 2285 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr() 2286 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr() 2288 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr() 2289 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr() 2290 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr() 2292 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr() 2296 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr() [all …]
|
/external/lzma/CPP/7zip/UI/Common/ |
D | Update.h | 71 UString OldName; member
|
D | Update.cpp | 462 return !DoesNameContainWildcard(OldName); in Prepare() 487 unsigned num = CompareTwoNames(OldName, src); in GetNewPath() 488 if (OldName[num] == 0) in GetNewPath() 501 || !IsPathSepar(OldName[num]) in GetNewPath() 502 || OldName[num + 1] != 0) in GetNewPath()
|
D | ArchiveCommandLine.cpp | 388 pair.OldName = oldName; in AddRenamePair() 396 val += pair.OldName; in AddRenamePair()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2396 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local 2398 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr() 2400 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr() 2402 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr() 2403 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr() 2405 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr() 2406 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr() 2407 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr() 2409 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr() 2413 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 2419 StringRef OldName = OldPtr->getName(); in getNewAllocaSlicePtr() local 2421 size_t LastSROAPrefix = OldName.rfind(".sroa."); in getNewAllocaSlicePtr() 2423 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa.")); in getNewAllocaSlicePtr() 2425 size_t IndexEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr() 2426 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') { in getNewAllocaSlicePtr() 2428 OldName = OldName.substr(IndexEnd + 1); in getNewAllocaSlicePtr() 2429 size_t OffsetEnd = OldName.find_first_not_of("0123456789"); in getNewAllocaSlicePtr() 2430 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.') in getNewAllocaSlicePtr() 2432 OldName = OldName.substr(OffsetEnd + 1); in getNewAllocaSlicePtr() 2436 OldName = OldName.substr(0, OldName.find(".sroa_")); in getNewAllocaSlicePtr() [all …]
|
/external/llvm/lib/TableGen/ |
D | Record.cpp | 1686 Init *OldName = getNameInit(); in resolveReferencesTo() local 1688 if (NewName != OldName) { in resolveReferencesTo()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/ |
D | Record.cpp | 2138 Init *OldName = getNameInit(); in resolveReferences() local 2140 if (NewName != OldName) { in resolveReferences()
|
/external/llvm-project/llvm/lib/TableGen/ |
D | Record.cpp | 2290 Init *OldName = getNameInit(); in resolveReferences() local 2292 if (NewName != OldName) { in resolveReferences()
|