/external/clang/unittests/Tooling/ |
D | RefactoringTest.cpp | 115 Replacements Replaces; in TEST_F() local 116 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F() 118 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 3, 1), in TEST_F() 120 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F() 130 std::vector<Replacement> Replaces; in TEST_F() local 131 Replaces.push_back(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F() 133 Replaces.push_back( in TEST_F() 135 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite)); in TEST_F() 142 Replacements Replaces; in TEST_F() local 143 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1), in TEST_F() [all …]
|
D | RewriterTest.cpp | 41 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() 44 auto Rewritten = applyAllReplacements("line1\nline2\nline3\nline4", Replaces); in TEST()
|
/external/clang/unittests/Format/ |
D | CleanupTest.cpp | 26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup() local 28 auto Result = applyAllReplacements(Code, Replaces); in cleanup() 256 const tooling::Replacements Replaces) { in apply() argument 257 auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style); in apply() 266 const tooling::Replacements Replaces) { in formatAndApply() argument 268 auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style); in formatAndApply() 307 tooling::Replacements Replaces = { in TEST_F() local 311 EXPECT_EQ(Expected, formatAndApply(Code, Replaces)); in TEST_F() 318 tooling::Replacements Replaces = {createInsertion("#include \"a.h\"")}; in TEST_F() local 319 EXPECT_EQ(Expected, apply(Code, Replaces)); in TEST_F() [all …]
|
D | FormatTestProto.cpp | 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format() local 28 auto Result = applyAllReplacements(Code, Replaces); in format()
|
D | FormatTestSelective.cpp | 28 tooling::Replacements Replaces = in format() local 31 auto Result = applyAllReplacements(Code, Replaces); in format()
|
D | FormatTestJava.cpp | 27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format() local 28 auto Result = applyAllReplacements(Code, Replaces); in format()
|
D | FormatTestJS.cpp | 28 tooling::Replacements Replaces = in format() local 31 auto Result = applyAllReplacements(Code, Replaces); in format()
|
D | FormatTest.cpp | 43 tooling::Replacements Replaces = in format() local 49 ReplacementCount = Replaces.size(); in format() 50 auto Result = applyAllReplacements(Code, Replaces); in format() 11544 tooling::Replacements Replaces; in TEST_F() local 11545 Replaces.insert(tooling::Replacement( in TEST_F() 11547 Replaces.insert(tooling::Replacement( in TEST_F() 11549 Replaces.insert(tooling::Replacement( in TEST_F() 11551 Replaces.insert(tooling::Replacement( in TEST_F() 11556 auto FormattedReplaces = formatReplacements(Code, Replaces, Style); in TEST_F() 11579 tooling::Replacements Replaces; in TEST_F() local [all …]
|
/external/clang/lib/Tooling/Core/ |
D | Replacement.cpp | 142 unsigned shiftedCodePositionInternal(const T &Replaces, unsigned Position) { in shiftedCodePositionInternal() argument 144 for (const auto& R : Replaces) { in shiftedCodePositionInternal() 158 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) { in shiftedCodePosition() argument 159 return shiftedCodePositionInternal(Replaces, Position); in shiftedCodePosition() 164 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces, in shiftedCodePosition() argument 166 return shiftedCodePositionInternal(Replaces, Position); in shiftedCodePosition() 169 void deduplicate(std::vector<Replacement> &Replaces, in deduplicate() argument 171 if (Replaces.empty()) in deduplicate() 190 std::sort(Replaces.begin(), Replaces.end(), LessNoPath); in deduplicate() 191 Replaces.erase(std::unique(Replaces.begin(), Replaces.end(), EqualNoPath), in deduplicate() [all …]
|
/external/clang/include/clang/Tooling/Core/ |
D | Replacement.h | 156 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite); 164 bool applyAllReplacements(const std::vector<Replacement> &Replaces, 175 const Replacements &Replaces); 179 unsigned shiftedCodePosition(const Replacements& Replaces, unsigned Position); 185 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces, 195 void deduplicate(std::vector<Replacement> &Replaces, 217 std::vector<Range> calculateChangedRanges(const Replacements &Replaces); 228 calculateRangesAfterReplacements(const Replacements &Replaces, 234 groupReplacementsByFile(const Replacements &Replaces);
|
/external/nist-sip/java/gov/nist/javax/sip/parser/extensions/ |
D | ReplacesParser.java | 50 Replaces replaces = new Replaces(); in parse() 71 Replaces t = (Replaces) tp.parse(); in main()
|
/external/clang/tools/clang-format/ |
D | ClangFormat.cpp | 229 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 260 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces); in format() 265 for (const auto &R : Replaces) in format() 271 Replaces = tooling::mergeReplacements(Replaces, FormatChanges); in format() 281 outputReplacementsXML(Replaces); in format() 294 tooling::applyAllReplacements(Replaces, Rewrite); in format()
|
/external/nist-sip/java/gov/nist/javax/sip/header/extensions/ |
D | Replaces.java | 24 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/lib/Format/ |
D | Format.cpp | 1219 tooling::Replacements &Replaces, unsigned *Cursor) { in sortCppIncludes() argument 1260 Replaces.insert(tooling::Replacement(FileName, Includes.front().Offset, in sortCppIncludes() 1326 tooling::Replacements &Replaces, in sortCppIncludes() argument 1367 sortCppIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, in sortCppIncludes() 1379 sortCppIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, Cursor); in sortCppIncludes() 1380 return Replaces; in sortCppIncludes() 1386 tooling::Replacements Replaces; in sortIncludes() local 1388 return Replaces; in sortIncludes() 1391 sortCppIncludes(Style, Code, Ranges, FileName, Replaces, Cursor); in sortIncludes() 1392 return Replaces; in sortIncludes() [all …]
|
D | WhitespaceManager.cpp | 47 Replaces.clear(); in reset() 95 return Replaces; in generateReplacements() 105 return Replaces; in generateReplacements() 505 Replaces.insert(tooling::Replacement( in storeReplacement()
|
D | WhitespaceManager.h | 207 tooling::Replacements Replaces; variable
|
/external/clang/lib/Tooling/ |
D | Refactoring.cpp | 65 bool formatAndApplyAllReplacements(const Replacements &Replaces, in formatAndApplyAllReplacements() argument 70 auto FileToReplaces = groupReplacementsByFile(Replaces); in formatAndApplyAllReplacements()
|
/external/e2fsprogs/debian/ |
D | control.in | 46 Replaces: e2fsprogs (<< 1.34-1) 59 Replaces: e2fslibs-dev (<< 1.33-2), libkrb5-dev (<< 1.3) 71 Replaces: e2fsprogs (<< 1.34-1) 99 Replaces: e2fsprogs (<< 1.34-1) 116 Replaces: e2fsprogs (<= 1.40.3-1ubuntu1) 154 Replaces: e2fslibs-dev (<< 1.15) 223 Replaces: e2fsprogs (<< 1.34-1) 243 Replaces: libkrb5-dev (<< 1.3) 263 Replaces: hurd (<= 20040301-1), libblkid1 (<< 1.38+1.39-WIP-2005.12.10-2), libuuid1 (<< 1.38+1.39-W…
|
/external/clang/include/clang/Tooling/ |
D | Refactoring.h | 86 bool formatAndApplyAllReplacements(const Replacements &Replaces,
|
/external/clang/include/clang/Format/ |
D | Format.h | 776 formatReplacements(StringRef Code, const tooling::Replacements &Replaces, 785 cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces,
|
/external/swiftshader/third_party/LLVM/cmake/modules/ |
D | LLVMProcessSources.cmake | 4 # Replaces a compiler option or switch `old' in `var' by `new'.
|
D | ChooseMSVCCRT.cmake | 36 # Replaces or adds a flag to a variable.
|
/external/llvm/cmake/modules/ |
D | LLVMProcessSources.cmake | 5 # Replaces a compiler option or switch `old' in `var' by `new'.
|
D | ChooseMSVCCRT.cmake | 36 # Replaces or adds a flag to a variable.
|
/external/skia/ |
D | public.bzl | 8 """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.
|