Home
last modified time | relevance | path

Searched refs:Replacement (Results 1 – 25 of 64) sorted by relevance

123

/external/clang/unittests/Tooling/
DRefactoringTest.cpp36 Replacement createReplacement(SourceLocation Start, unsigned Length, in createReplacement()
38 return Replacement(Context.Sources, Start, Length, ReplacementText); in createReplacement()
47 Replacement Replace(createReplacement(Location, 4, "")); in TEST_F()
55 Replacement Replace(createReplacement(Location, 17, "")); in TEST_F()
63 Replacement Replace(createReplacement(Location, 0, "result")); in TEST_F()
72 Replacement Replace(createReplacement(Location, 12, "x")); in TEST_F()
81 Replacement Replace1(createReplacement(Location1, 12, "x\ny\n")); in TEST_F()
88 Replacement Replace2(createReplacement(Location2, 1, "f")); in TEST_F()
94 Replacement Replace("nonexistent-file.cpp", 0, 1, ""); in TEST_F()
99 Replacement Replace("/path/to/file.cpp", 0, 1, ""); in TEST_F()
[all …]
DRewriterTest.cpp42 Replaces.insert(Replacement("<file>", 6, 6, "")); in TEST()
43 Replaces.insert(Replacement("<file>", 6, 0, "replaced\n")); in TEST()
DReplacementsYamlTest.cpp27 .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/
DReplacement.h70 class Replacement {
73 Replacement();
81 Replacement(StringRef FilePath, unsigned Offset, unsigned Length,
86 Replacement(const SourceManager &Sources, SourceLocation Start,
90 Replacement(const SourceManager &Sources, const CharSourceRange &Range,
96 Replacement(const SourceManager &Sources, const Node &NodeToReplace,
134 bool operator<(const Replacement &LHS, const Replacement &RHS);
137 bool operator==(const Replacement &LHS, const Replacement &RHS);
141 typedef std::set<Replacement> Replacements;
157 bool applyAllReplacements(const std::vector<Replacement> &Replaces,
[all …]
/external/clang/lib/Tooling/Core/
DReplacement.cpp31 Replacement::Replacement() in Replacement() function in clang::tooling::Replacement
34 Replacement::Replacement(StringRef FilePath, unsigned Offset, unsigned Length, in Replacement() function in clang::tooling::Replacement
39 Replacement::Replacement(const SourceManager &Sources, SourceLocation Start, in Replacement() function in clang::tooling::Replacement
44 Replacement::Replacement(const SourceManager &Sources, in Replacement() function in clang::tooling::Replacement
51 bool Replacement::isApplicable() const { in isApplicable()
55 bool Replacement::apply(Rewriter &Rewrite) const { in apply()
80 std::string Replacement::toString() const { in toString()
88 bool operator<(const Replacement &LHS, const Replacement &RHS) { in operator <()
103 bool operator==(const Replacement &LHS, const Replacement &RHS) { in operator ==()
110 void Replacement::setFromSourceLocation(const SourceManager &Sources, in setFromSourceLocation()
[all …]
DCMakeLists.txt5 Replacement.cpp
/external/clang/include/clang/Tooling/
DReplacementsYaml.h24 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/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DReplaceSelectedJavadoc.java45 private List<Replacement> replacements;
47 public ReplaceSelectedJavadoc(List<Replacement> replacements) { in ReplaceSelectedJavadoc()
64 for (Replacement replacement : replacements) { in processComment()
100 List<Replacement> replacements = Lists.newArrayList(); in createFromResource()
116 replacements.add(new Replacement(locator, replacementText)); in createFromResource()
140 public static class Replacement { class in ReplaceSelectedJavadoc
144 public Replacement(BodyDeclarationLocator locator, String replacementText) { in Replacement() method in ReplaceSelectedJavadoc.Replacement
/external/clang/lib/Tooling/
DRefactoringCallbacks.cpp23 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()
DAndroid.mk19 Core/Replacement.cpp \
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp164 Value *Replacement = nullptr; in replaceImageUses() local
167 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceImageUses()
169 Replacement = &ImageSizeArg; in replaceImageUses()
171 Replacement = &ImageFormatArg; in replaceImageUses()
176 Inst->replaceAllUsesWith(Replacement); in replaceImageUses()
197 Value *Replacement = nullptr; in replaceSamplerUses() local
200 Replacement = ConstantInt::get(Int32Type, ResourceID); in replaceSamplerUses()
205 Inst->replaceAllUsesWith(Replacement); in replaceSamplerUses()
/external/llvm/lib/Transforms/ObjCARC/
DObjCARCContract.cpp571 Instruction *Replacement = Inst; in runOnFunction() local
577 if (Replacement->getType() != UseTy) in runOnFunction()
578 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction()
590 PHI->setIncomingValue(i, Replacement); in runOnFunction()
593 if (Replacement->getType() != UseTy) in runOnFunction()
594 Replacement = new BitCastInst(Replacement, UseTy, "", in runOnFunction()
596 U.set(Replacement); in runOnFunction()
/external/v8/src/compiler/
Dint64-lowering.h35 struct Replacement { struct
73 Replacement* replacements_;
/external/clang/include/clang/AST/
DTemplateName.h344 TemplateName Replacement; variable
349 Parameter(parameter), Replacement(replacement) {} in SubstTemplateTemplateParmStorage()
353 TemplateName getReplacement() const { return Replacement; } in getReplacement()
/external/llvm/include/llvm/IR/
DDIBuilder.h716 NodeTy *replaceTemporary(TempMDNode &&N, NodeTy *Replacement) { in replaceTemporary() argument
717 if (N.get() == Replacement) in replaceTemporary()
720 N->replaceAllUsesWith(Replacement); in replaceTemporary()
721 return Replacement; in replaceTemporary()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/
Dplugin.properties11 pluginName = International Components for Unicode for Java (ICU4J) Replacement plug-in Tests
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/
Dplugin.properties11 pluginName = International Components for Unicode for Java (ICU4J) Replacement plug-in
/external/llvm/test/CodeGen/PowerPC/
DBreakableToken-reduced.ll195Replacement, clang::tooling::Replacement, std::_Identity<clang::tooling::Replacement>, std::less<c…
196Replacement, clang::tooling::Replacement, std::_Identity<clang::tooling::Replacement>, std::less<c…
/external/llvm/include/llvm/Support/
DSourceMgr.h213 SMFixIt(SMRange R, const Twine &Replacement) in SMFixIt() argument
214 : Range(R), Text(Replacement.str()) { in SMFixIt()
/external/clang/utils/TableGen/
DClangDiagnosticsEmitter.cpp238 SmallString<64> Replacement; in groupDiagnostics() local
240 Replacement += "InGroup<"; in groupDiagnostics()
241 Replacement += (*I)->ExplicitDef->getName(); in groupDiagnostics()
242 Replacement += ">"; in groupDiagnostics()
244 SMFixIt FixIt(InGroupRange, Replacement); in groupDiagnostics()
/external/llvm/lib/IR/
DBasicBlock.cpp73 Constant *Replacement = in ~BasicBlock() local
77 BA->replaceAllUsesWith(ConstantExpr::getIntToPtr(Replacement, in ~BasicBlock()
/external/llvm/tools/bugpoint/
DCrashDebugger.cpp282 Constant *Replacement = ConstantPointerNull::get(Ty); in TestFuncs() local
283 Alias.replaceAllUsesWith(Replacement); in TestFuncs()
290 Constant *Replacement = ConstantPointerNull::get(Ty); in TestFuncs() local
291 I.replaceAllUsesWith(Replacement); in TestFuncs()
/external/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1091 Value *Replacement) { in findBasePointer() argument
1100 BaseI->replaceAllUsesWith(Replacement); in findBasePointer()
1103 States[BDV] = BDVState(BDVState::Conflict, Replacement); in findBasePointer()
2050 Instruction *Replacement = cast<Instruction>(Replacements[V].first); in splitVectorValues() local
2051 (new StoreInst(Replacement, Alloca))->insertAfter(Replacement); in splitVectorValues()
2053 Replacement = cast_or_null<Instruction>(Replacements[V].second); in splitVectorValues()
2054 if (Replacement) in splitVectorValues()
2055 (new StoreInst(Replacement, Alloca))->insertAfter(Replacement); in splitVectorValues()
/external/clang/lib/AST/
DTemplateName.cpp31 Profile(ID, Parameter, Replacement); in Profile()
/external/llvm/lib/Transforms/Utils/
DInlineFunction.cpp345 Instruction *Replacement = nullptr; in HandleInlinedEHPad() local
354 Replacement = NewCatchSwitch; in HandleInlinedEHPad()
360 if (Replacement) { in HandleInlinedEHPad()
361 Replacement->takeName(I); in HandleInlinedEHPad()
362 I->replaceAllUsesWith(Replacement); in HandleInlinedEHPad()

123