/external/clang/unittests/Tooling/ |
D | RefactoringTest.cpp | 37 Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement() 39 return Replacement(Context.Sources, Start, Length, ReplacementText); in createReplacement() 48 Replacement Replace(createReplacement(Location, 4, "")); in TEST_F() 56 Replacement Replace(createReplacement(Location, 17, "")); in TEST_F() 64 Replacement Replace(createReplacement(Location, 0, "result")); in TEST_F() 73 Replacement Replace(createReplacement(Location, 12, "x")); in TEST_F() 82 Replacement Replace1(createReplacement(Location1, 12, "x\ny\n")); in TEST_F() 89 Replacement Replace2(createReplacement(Location2, 1, "f")); in TEST_F() 95 Replacement Replace("nonexistent-file.cpp", 0, 1, ""); in TEST_F() 100 Replacement Replace("/path/to/file.cpp", 0, 1, ""); in TEST_F() [all …]
|
D | RewriterTest.cpp | 42 Replaces.insert(Replacement("<file>", 6, 6, "")); in TEST() 43 Replaces.insert(Replacement("<file>", 6, 0, "replaced\n")); in TEST()
|
D | ReplacementsYamlTest.cpp | 27 .push_back(Replacement("/path/to/file1.h", 232, 56, "replacement #1")); in TEST() 29 .push_back(Replacement("/path/to/file2.h", 301, 2, "replacement #2")); in TEST()
|
/external/clang/include/clang/Tooling/Core/ |
D | Replacement.h | 77 class Replacement { 80 Replacement(); 88 Replacement(StringRef FilePath, unsigned Offset, unsigned Length, 93 Replacement(const SourceManager &Sources, SourceLocation Start, 97 Replacement(const SourceManager &Sources, const CharSourceRange &Range, 103 Replacement(const SourceManager &Sources, const Node &NodeToReplace, 141 bool operator<(const Replacement &LHS, const Replacement &RHS); 144 bool operator==(const Replacement &LHS, const Replacement &RHS); 148 typedef std::set<Replacement> Replacements; 164 bool applyAllReplacements(const std::vector<Replacement> &Replaces, [all …]
|
/external/clang/lib/Tooling/Core/ |
D | Replacement.cpp | 32 Replacement::Replacement() in Replacement() function in clang::tooling::Replacement 35 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() function in clang::tooling::Replacement 40 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start, in Replacement() function in clang::tooling::Replacement 45 Replacement::Replacement(const SourceManager &Sources, in Replacement() function in clang::tooling::Replacement 52 bool Replacement::isApplicable() const { in isApplicable() 56 bool Replacement::apply(Rewriter &Rewrite) const { in apply() 75 std::string Replacement::toString() const { in toString() 83 bool operator<(const Replacement &LHS, const Replacement &RHS) { in operator <() 98 bool operator==(const Replacement &LHS, const Replacement &RHS) { in operator ==() 105 void Replacement::setFromSourceLocation(const SourceManager &Sources, in setFromSourceLocation() [all …]
|
/external/clang/include/clang/Tooling/ |
D | ReplacementsYaml.h | 24 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::Replacement) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument 31 template <> struct MappingTraits<clang::tooling::Replacement> { in LLVM_YAML_IS_SEQUENCE_VECTOR() 38 NormalizedReplacement(const IO &, const clang::tooling::Replacement &R) in LLVM_YAML_IS_SEQUENCE_VECTOR() 42 clang::tooling::Replacement denormalize(const IO &) { in LLVM_YAML_IS_SEQUENCE_VECTOR() 43 return clang::tooling::Replacement(FilePath, Offset, Length, in LLVM_YAML_IS_SEQUENCE_VECTOR() 53 static void mapping(IO &Io, clang::tooling::Replacement &R) { in LLVM_YAML_IS_SEQUENCE_VECTOR() 54 MappingNormalization<NormalizedReplacement, clang::tooling::Replacement> in LLVM_YAML_IS_SEQUENCE_VECTOR()
|
/external/clang/lib/Tooling/ |
D | RefactoringCallbacks.cpp | 23 static Replacement replaceStmtWithText(SourceManager &Sources, in replaceStmtWithText() 26 return tooling::Replacement(Sources, CharSourceRange::getTokenRange( in replaceStmtWithText() 29 static Replacement replaceStmtWithStmt(SourceManager &Sources, in replaceStmtWithStmt() 43 Replace.insert(tooling::Replacement( in run()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | R600OpenCLImageTypeLoweringPass.cpp | 180 Value *Replacement = nullptr; in replaceImageUses() local 183 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceImageUses() 185 Replacement = &ImageSizeArg; in replaceImageUses() 187 Replacement = &ImageFormatArg; in replaceImageUses() 192 Inst->replaceAllUsesWith(Replacement); in replaceImageUses() 213 Value *Replacement = nullptr; in replaceSamplerUses() local 216 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceSamplerUses() 221 Inst->replaceAllUsesWith(Replacement); in replaceSamplerUses()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUOpenCLImageTypeLoweringPass.cpp | 163 Value *Replacement = nullptr; in replaceImageUses() local 166 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceImageUses() 168 Replacement = &ImageSizeArg; in replaceImageUses() 170 Replacement = &ImageFormatArg; in replaceImageUses() 175 Inst->replaceAllUsesWith(Replacement); in replaceImageUses() 196 Value *Replacement = nullptr; in replaceSamplerUses() local 199 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceSamplerUses() 204 Inst->replaceAllUsesWith(Replacement); in replaceSamplerUses()
|
/external/v8/tools/clang/value_cleanup/ |
D | ValueRewriter.h | 20 explicit ValueRewriter(std::set<clang::tooling::Replacement>* replacements); 30 std::set<clang::tooling::Replacement>* replacements); 41 std::set<clang::tooling::Replacement>* const replacements_;
|
D | ValueRewriter.cpp | 14 std::set<clang::tooling::Replacement>* replacements) in ListValueCallback() 29 std::set<clang::tooling::Replacement>* replacements) in ValueRewriter()
|
D | ValueCleanup.cpp | 27 using clang::tooling::Replacement; 44 std::set<Replacement> replacements; in main()
|
/external/v8/tools/clang/empty_string/ |
D | EmptyStringConverter.cpp | 22 using clang::tooling::Replacement; 120 auto err = replacements_->add(Replacement(*result.SourceManager, range, "")); in run() 132 auto err = replacements_->add(Replacement(*result.SourceManager, call, "")); in run() 151 replacements_->add(Replacement(*result.SourceManager, literal, "")); in run() 155 Replacement(*result.SourceManager, call, in run()
|
/external/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 572 Instruction *Replacement = Inst; in runOnFunction() local 578 if (Replacement->getType() != UseTy) in runOnFunction() 579 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 591 PHI->setIncomingValue(i, Replacement); in runOnFunction() 594 if (Replacement->getType() != UseTy) in runOnFunction() 595 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 597 U.set(Replacement); in runOnFunction()
|
/external/v8/tools/clang/rewrite_scoped_refptr/ |
D | RewriteScopedRefptr.cpp | 29 using clang::tooling::Replacement; 66 Replacement RewriteImplicitToExplicitConversion( in RewriteImplicitToExplicitConversion() 97 return Replacement(*result.SourceManager, range, inner_text); in RewriteImplicitToExplicitConversion() 124 return Replacement(*result.SourceManager, range, text); in RewriteImplicitToExplicitConversion() 135 return Replacement(*result.SourceManager, range, text); in RewriteImplicitToExplicitConversion() 138 Replacement RewriteRawPtrToScopedRefptr(const MatchFinder::MatchResult& result, in RewriteRawPtrToScopedRefptr() 154 return Replacement(*result.SourceManager, range, replacement_text); in RewriteRawPtrToScopedRefptr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/ObjCARC/ |
D | ObjCARCContract.cpp | 610 Instruction *Replacement = Inst; in runOnFunction() local 616 if (Replacement->getType() != UseTy) { in runOnFunction() 627 Replacement = in runOnFunction() 628 new BitCastInst(Replacement, UseTy, "", &InsertBB->back()); in runOnFunction() 641 PHI->setIncomingValue(i, Replacement); in runOnFunction() 644 if (Replacement->getType() != UseTy) in runOnFunction() 645 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction() 647 U.set(Replacement); in runOnFunction()
|
/external/v8/tools/clang/pass_to_move/ |
D | PassToMove.cpp | 25 using clang::tooling::Replacement; 53 Replacement(*result.SourceManager, in run() 61 err = replacements_->add(Replacement( in run()
|
/external/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 322 for (auto &Replacement : ReplacementMap) { in tryReplaceExtracts() local 323 auto *Extract = Replacement.first; in tryReplaceExtracts() 324 auto *Vector = Replacement.second.first; in tryReplaceExtracts() 325 auto Index = Replacement.second.second; in tryReplaceExtracts()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Constants.cpp | 1947 Constant *Replacement = 0; in replaceUsesOfWithOnConstant() local 1949 Replacement = ConstantAggregateZero::get(getType()); in replaceUsesOfWithOnConstant() 1957 Replacement = I->second; in replaceUsesOfWithOnConstant() 1982 assert(Replacement != this && "I didn't contain From!"); in replaceUsesOfWithOnConstant() 1985 replaceAllUsesWith(Replacement); in replaceUsesOfWithOnConstant() 2024 Constant *Replacement = 0; in replaceUsesOfWithOnConstant() local 2026 Replacement = ConstantAggregateZero::get(getType()); in replaceUsesOfWithOnConstant() 2034 Replacement = I->second; in replaceUsesOfWithOnConstant() 2048 assert(Replacement != this && "I didn't contain From!"); in replaceUsesOfWithOnConstant() 2051 replaceAllUsesWith(Replacement); in replaceUsesOfWithOnConstant() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 400 for (auto &Replacement : ReplacementMap) { in tryReplaceExtracts() local 401 auto *Extract = Replacement.first; in tryReplaceExtracts() 402 auto *Vector = Replacement.second.first; in tryReplaceExtracts() 403 auto Index = Replacement.second.second; in tryReplaceExtracts()
|
/external/grpc-grpc/test/core/client_channel/ |
D | retry_throttle_test.cc | 68 TEST(ServerRetryThrottleData, Replacement) { in TEST() argument 99 TEST(ServerRetryThrottleMap, Replacement) { in TEST() argument
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Coroutines/ |
D | CoroInternal.h | 47 void replaceAllCoroAllocs(CoroBeginInst *CB, bool Replacement); 48 void replaceAllCoroFrees(CoroBeginInst *CB, Value *Replacement);
|
/external/v8/src/compiler/ |
D | int64-lowering.h | 37 struct Replacement { struct 76 Replacement* replacements_;
|
/external/llvm/include/llvm/IR/ |
D | DIBuilder.h | 721 NodeTy *replaceTemporary(TempMDNode &&N, NodeTy *Replacement) { in replaceTemporary() argument 722 if (N.get() == Replacement) in replaceTemporary() 725 N->replaceAllUsesWith(Replacement); in replaceTemporary() 726 return Replacement; in replaceTemporary()
|
/external/clang/include/clang/AST/ |
D | TemplateName.h | 319 TemplateName Replacement; variable 324 Parameter(parameter), Replacement(replacement) {} in SubstTemplateTemplateParmStorage() 328 TemplateName getReplacement() const { return Replacement; } in getReplacement()
|