Home
last modified time | relevance | path

Searched refs:Replaces (Results 1 – 25 of 28) sorted by relevance

12

/external/clang/unittests/Tooling/
DRefactoringTest.cpp114 Replacements Replaces; in TEST_F() local
115 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
117 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 3, 1), in TEST_F()
119 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
129 std::vector<Replacement> Replaces; in TEST_F() local
130 Replaces.push_back(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
132 Replaces.push_back( in TEST_F()
134 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F()
141 Replacements Replaces; in TEST_F() local
142 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F()
[all …]
DRewriterTest.cpp41 Replacements Replaces; in TEST() local
42 Replaces.insert(Replacement("<file>", 6, 6, "")); in TEST()
43 Replaces.insert(Replacement("<file>", 6, 0, "replaced\n")); in TEST()
45 applyAllReplacements("line1\nline2\nline3\nline4", Replaces)); in TEST()
/external/clang/lib/Tooling/Core/
DReplacement.cpp147 unsigned shiftedCodePositionInternal(const T &Replaces, unsigned Position) { in shiftedCodePositionInternal() argument
149 for (const auto& R : Replaces) { in shiftedCodePositionInternal()
163 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) { in shiftedCodePosition() argument
164 return shiftedCodePositionInternal(Replaces, Position); in shiftedCodePosition()
169 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces, in shiftedCodePosition() argument
171 return shiftedCodePositionInternal(Replaces, Position); in shiftedCodePosition()
174 void deduplicate(std::vector<Replacement> &Replaces, in deduplicate() argument
176 if (Replaces.empty()) in deduplicate()
195 std::sort(Replaces.begin(), Replaces.end(), LessNoPath); in deduplicate()
196 Replaces.erase(std::unique(Replaces.begin(), Replaces.end(), EqualNoPath), in deduplicate()
[all …]
/external/clang/include/clang/Tooling/Core/
DReplacement.h149 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
157 bool applyAllReplacements(const std::vector<Replacement> &Replaces,
164 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces);
168 unsigned shiftedCodePosition(const Replacements& Replaces, unsigned Position);
174 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces,
184 void deduplicate(std::vector<Replacement> &Replaces,
206 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
214 bool applyAllReplacements(const std::vector<Replacement> &Replaces,
221 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces);
/external/nist-sip/java/gov/nist/javax/sip/parser/extensions/
DReplacesParser.java50 Replaces replaces = new Replaces(); in parse()
71 Replaces t = (Replaces) tp.parse(); in main()
/external/clang/tools/clang-format/
DClangFormat.cpp229 static void outputReplacementsXML(const Replacements &Replaces) { in outputReplacementsXML() argument
230 for (const auto &R : Replaces) { in outputReplacementsXML()
258 Replacements Replaces = sortIncludes(FormatStyle, Code->getBuffer(), Ranges, in format() local
261 tooling::applyAllReplacements(Code->getBuffer(), Replaces); in format()
262 for (const auto &R : Replaces) in format()
268 Replaces = tooling::mergeReplacements(Replaces, FormatChanges); in format()
278 outputReplacementsXML(Replaces); in format()
291 tooling::applyAllReplacements(Replaces, Rewrite); in format()
/external/nist-sip/java/gov/nist/javax/sip/header/extensions/
DReplaces.java24 public class Replaces class
42 public Replaces() { in Replaces() method in Replaces
50 public Replaces(String callId) throws IllegalArgumentException { in Replaces() method in Replaces
/external/clang/unittests/Format/
DFormatTestProto.cpp27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format() local
28 std::string Result = applyAllReplacements(Code, Replaces); in format()
DFormatTestSelective.cpp28 tooling::Replacements Replaces = in format() local
31 std::string Result = applyAllReplacements(Code, Replaces); in format()
DFormatTestJava.cpp27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format() local
28 std::string Result = applyAllReplacements(Code, Replaces); in format()
DFormatTestJS.cpp28 tooling::Replacements Replaces = in format() local
31 std::string Result = applyAllReplacements(Code, Replaces); in format()
/external/e2fsprogs/debian/
Dcontrol.in37 Replaces: e2fsprogs (<< 1.34-1)
50 Replaces: e2fslibs-dev (<< 1.33-2), libkrb5-dev (<< 1.3)
62 Replaces: e2fsprogs (<< 1.34-1)
90 Replaces: e2fsprogs (<< 1.34-1)
107 Replaces: e2fsprogs (<= 1.40.3-1ubuntu1)
143 Replaces: e2fslibs-dev (<< 1.15)
208 Replaces: e2fsprogs (<< 1.34-1)
228 Replaces: libkrb5-dev (<< 1.3)
248 Replaces: hurd (<= 20040301-1), libblkid1 (<< 1.38+1.39-WIP-2005.12.10-2), libuuid1 (<< 1.38+1.39-W…
/external/clang/lib/Format/
DWhitespaceManager.cpp47 Replaces.clear(); in reset()
97 return Replaces; in generateReplacements()
107 return Replaces; in generateReplacements()
483 Replaces.insert(tooling::Replacement( in storeReplacement()
DWhitespaceManager.h202 tooling::Replacements Replaces; variable
DFormat.cpp1741 tooling::Replacements &Replaces, unsigned *Cursor) { in sortIncludes() argument
1788 Replaces.insert(tooling::Replacement(FileName, Includes.front().Offset, in sortIncludes()
1795 tooling::Replacements Replaces; in sortIncludes() local
1797 return Replaces; in sortIncludes()
1860 sortIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, in sortIncludes()
1872 sortIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, Cursor); in sortIncludes()
1873 return Replaces; in sortIncludes()
/external/skia/
Dpublic.bzl8 """Replaces select() with a Bazel-friendly wrapper.
23 """Replaces select() for conditions [UNIX, ANDROID, IOS]
40 """Replaces glob() with a version that accepts a struct.
/external/llvm/cmake/modules/
DLLVMProcessSources.cmake5 # Replaces a compiler option or switch `old' in `var' by `new'.
DChooseMSVCCRT.cmake36 # Replaces or adds a flag to a variable.
/external/opencv3/3rdparty/libjasper/
Dchangelog134 - libjasper-1.701-dev (Provides, Replaces and Conflicts: libjasper-dev)
/external/nist-sip/java/gov/nist/javax/sip/header/
DHeaderFactoryImpl.java1276 Replaces replaces = new Replaces(); in createReplacesHeader()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DParserFactory.java272 parserTable.put(Replaces.NAME.toLowerCase(), ReplacesParser.class); in Replaces.NAME.toLowerCase()
/external/compiler-rt/lib/dfsan/
Ddone_abilist.txt266 # Replaces __sanitizer_cov_trace_cmp with __dfsw___sanitizer_cov_trace_cmp
/external/chromium-trace/catapult/telemetry/third_party/altgraph/doc/
Ddot.rst160 Replaces the current style for all nodes
/external/vulkan-validation-layers/tests/gtest-1.7.0/cmake/
Dinternal_utils.cmake39 # Replaces /W3 with /W4 in defaults.
/external/google-breakpad/src/testing/gtest/cmake/
Dinternal_utils.cmake39 # Replaces /W3 with /W4 in defaults.

12