Home
last modified time | relevance | path

Searched refs:Replacements (Results 1 – 25 of 31) sorted by relevance

12

/external/clang/unittests/Tooling/
DReplacementsYamlTest.cpp26 Doc.Replacements in TEST()
28 Doc.Replacements in TEST()
72 ASSERT_EQ(2u, DocActual.Replacements.size()); in TEST()
75 ASSERT_EQ("/path/to/file1.h", DocActual.Replacements[0].getFilePath()); in TEST()
76 ASSERT_EQ(232u, DocActual.Replacements[0].getOffset()); in TEST()
77 ASSERT_EQ(56u, DocActual.Replacements[0].getLength()); in TEST()
78 ASSERT_EQ("replacement #1", DocActual.Replacements[0].getReplacementText()); in TEST()
79 ASSERT_EQ("/path/to/file2.h", DocActual.Replacements[1].getFilePath()); in TEST()
80 ASSERT_EQ(301u, DocActual.Replacements[1].getOffset()); in TEST()
81 ASSERT_EQ(2u, DocActual.Replacements[1].getLength()); in TEST()
[all …]
DRefactoringTest.cpp114 Replacements Replaces; in TEST_F()
141 Replacements Replaces; in TEST_F()
157 Replacements Replaces; in TEST_F()
170 Replacements Replaces; in TEST()
205 Replacements Replaces; in TEST()
214 Replacements Replaces; in TEST()
274 Replacements Replaces; in TEST_F()
504 StringRef Result, const Replacements &First, in mergeAndTestRewrite()
505 const Replacements &Second) { in mergeAndTestRewrite()
512 tooling::Replacements Merged = mergeReplacements(First, Second); in mergeAndTestRewrite()
[all …]
DRewriterTest.cpp41 Replacements Replaces; in TEST()
/external/llvm/lib/Transforms/IPO/
DConstantMerge.cpp109 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; in runOnModule() local
191 Replacements.push_back(std::make_pair(GV, Slot)); in runOnModule()
194 if (Replacements.empty()) in runOnModule()
201 for (unsigned i = 0, e = Replacements.size(); i != e; ++i) { in runOnModule()
203 if (Replacements[i].first->getAlignment() || in runOnModule()
204 Replacements[i].second->getAlignment()) { in runOnModule()
205 Replacements[i].second->setAlignment( in runOnModule()
206 std::max(getAlignment(Replacements[i].first), in runOnModule()
207 getAlignment(Replacements[i].second))); in runOnModule()
211 Replacements[i].first->replaceAllUsesWith(Replacements[i].second); in runOnModule()
[all …]
/external/clang/include/clang/Tooling/Core/
DReplacement.h141 typedef std::set<Replacement> Replacements; typedef
149 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
164 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces);
168 unsigned shiftedCodePosition(const Replacements& Replaces, unsigned Position);
197 std::vector<Replacement> Replacements; member
206 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
221 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces);
226 Replacements mergeReplacements(const Replacements &First,
227 const Replacements &Second);
/external/clang/lib/Tooling/Core/
DReplacement.cpp163 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) { in shiftedCodePosition()
226 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) { in applyAllReplacements()
228 for (Replacements::const_iterator I = Replaces.begin(), in applyAllReplacements()
257 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces) { in applyAllReplacements()
270 for (Replacements::const_iterator I = Replaces.begin(), E = Replaces.end(); in applyAllReplacements()
380 Replacements mergeReplacements(const Replacements &First, in mergeReplacements()
381 const Replacements &Second) { in mergeReplacements()
388 Replacements Result; in mergeReplacements()
/external/clang/include/clang/Tooling/
DRefactoring.h47 Replacements &getReplacements();
68 Replacements Replace;
DRefactoringCallbacks.h44 Replacements &getReplacements();
47 Replacements Replace;
DReplacementsYaml.h70 Io.mapRequired("Replacements", Doc.Replacements); in LLVM_YAML_IS_SEQUENCE_VECTOR()
/external/clang/lib/Format/
DWhitespaceManager.h82 const tooling::Replacements &generateReplacements();
202 tooling::Replacements Replaces;
DFormat.cpp1433 tooling::Replacements format(bool *IncompleteFormat) { in format()
1434 tooling::Replacements Result; in format()
1448 tooling::Replacements RunResult = in format()
1452 for (tooling::Replacements::iterator I = RunResult.begin(), in format()
1467 tooling::Replacements format(SmallVectorImpl<AnnotatedLine *> &AnnotatedLines, in format()
1741 tooling::Replacements &Replaces, unsigned *Cursor) { in sortIncludes()
1792 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code, in sortIncludes()
1795 tooling::Replacements Replaces; in sortIncludes()
1876 tooling::Replacements reformat(const FormatStyle &Style, in reformat()
1882 return tooling::Replacements(); in reformat()
[all …]
DWhitespaceManager.cpp95 const tooling::Replacements &WhitespaceManager::generateReplacements() { in generateReplacements()
/external/clang/tools/clang-format/
DClangFormat.cpp30 using clang::tooling::Replacements;
229 static void outputReplacementsXML(const Replacements &Replaces) { in outputReplacementsXML()
258 Replacements Replaces = sortIncludes(FormatStyle, Code->getBuffer(), Ranges, in format()
266 Replacements FormatChanges = reformat(FormatStyle, ChangedCode, Ranges, in format()
/external/clang/include/clang/Format/
DFormat.h720 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code,
737 tooling::Replacements reformat(const FormatStyle &Style,
745 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
/external/llvm/lib/Target/ARM/
DA15SDOptimizer.cpp131 std::map<MachineInstr*, unsigned> Replacements; member
643 if (Replacements.find(MI) != Replacements.end()) in runOnInstruction()
677 Replacements[MI] = NewReg; in runOnInstruction()
697 Replacements.clear(); in runOnMachineFunction()
/external/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp1393 std::vector<DeferredReplacement> &Replacements) { in makeStatepointExplicitImpl() argument
1546 Replacements.emplace_back(CS.getInstruction(), GCResult); in makeStatepointExplicitImpl()
1548 Replacements.emplace_back(CS.getInstruction(), nullptr); in makeStatepointExplicitImpl()
1611 std::vector<DeferredReplacement> &Replacements) { in makeStatepointExplicit() argument
1633 makeStatepointExplicitImpl(CS, BaseVec, LiveVec, Result, Replacements); in makeStatepointExplicit()
1975 DenseMap<Value *, std::pair<Value *, Value *>> Replacements; in splitVectorValues() local
2002 Replacements[V].first = InsertVectorReform(IP); in splitVectorValues()
2003 Replacements[V].second = nullptr; in splitVectorValues()
2014 Replacements[V].first = InsertVectorReform(IP); in splitVectorValues()
2016 Replacements[V].second = InsertVectorReform(IP); in splitVectorValues()
[all …]
/external/clang/lib/Tooling/
DRefactoring.cpp33 Replacements &RefactoringTool::getReplacements() { return Replace; } in getReplacements()
DRefactoringCallbacks.cpp19 tooling::Replacements &RefactoringCallback::getReplacements() { in getReplacements()
/external/clang/lib/CodeGen/
DCGCXX.cpp142 if (Replacements.count(MangledName)) in TryEmitDefinitionAsAlias()
167 Replacements[MangledName] = Aliasee; in TryEmitDefinitionAsAlias()
/external/clang/unittests/Format/
DFormatTestProto.cpp27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
DFormatTestSelective.cpp28 tooling::Replacements Replaces = in format()
DFormatTestJava.cpp27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
DFormatTestJS.cpp28 tooling::Replacements Replaces = in format()
/external/clang/docs/
DLibFormat.rst25 tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex,
/external/clang/lib/Sema/
DSemaInit.cpp1871 SmallVector<Designator, 4> Replacements; in ExpandAnonymousFieldDesignator() local
1875 Replacements.push_back(Designator((IdentifierInfo *)nullptr, in ExpandAnonymousFieldDesignator()
1879 Replacements.push_back(Designator((IdentifierInfo *)nullptr, in ExpandAnonymousFieldDesignator()
1882 Replacements.back().setField(cast<FieldDecl>(*PI)); in ExpandAnonymousFieldDesignator()
1888 DIE->ExpandDesignator(SemaRef.Context, DesigIdx, &Replacements[0], in ExpandAnonymousFieldDesignator()
1889 &Replacements[0] + Replacements.size()); in ExpandAnonymousFieldDesignator()

12