HomeSort by relevance Sort by last modified time
    Searched refs:Replaces (Results 1 - 25 of 56) sorted by null

1 2 3

  /external/clang/unittests/Tooling/
RewriterTest.cpp 41 Replacements Replaces;
42 Replaces.insert(Replacement("<file>", 6, 6, ""));
43 Replaces.insert(Replacement("<file>", 6, 0, "replaced\n"));
44 auto Rewritten = applyAllReplacements("line1\nline2\nline3\nline4", Replaces);
RefactoringTest.cpp 115 Replacements Replaces;
116 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
118 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 3, 1),
120 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite));
130 std::vector<Replacement> Replaces;
131 Replaces.push_back(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
133 Replaces.push_back(
135 EXPECT_TRUE(applyAllReplacements(Replaces, Context.Rewrite));
142 Replacements Replaces;
143 Replaces.insert(Replacement(Context.Sources, Context.getLocation(ID, 2, 1)
    [all...]
  /external/clang/unittests/Format/
CleanupTest.cpp 26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges);
28 auto Result = applyAllReplacements(Code, Replaces);
256 const tooling::Replacements Replaces) {
257 auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style);
266 const tooling::Replacements Replaces) {
268 auto CleanReplaces = cleanupAroundReplacements(Code, Replaces, Style);
307 tooling::Replacements Replaces = {
311 EXPECT_EQ(Expected, formatAndApply(Code, Replaces));
318 tooling::Replacements Replaces = {createInsertion("#include \"a.h\"")};
319 EXPECT_EQ(Expected, apply(Code, Replaces));
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/parser/extensions/
ReplacesParser.java 9 // Parser for Replaces Header (RFC3891)
12 // Replaces = "Replaces" HCOLON callid *(SEMI replaces-param)
13 // replaces-param = to-tag / from-tag / early-flag / generic-param
50 Replaces replaces = new Replaces(); local
54 super.parse(replaces);
55 replaces.setCallId(callId)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/Core/
Replacement.h 215 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
256 /// \brief Merges \p Replaces into the current replacements. \p Replaces
258 Replacements merge(const Replacements &Replaces) const;
268 unsigned size() const { return Replaces.size(); }
270 void clear() { Replaces.clear(); }
272 bool empty() const { return Replaces.empty(); }
274 const_iterator begin() const { return Replaces.begin(); }
276 const_iterator end() const { return Replaces.end(); }
278 const_reverse_iterator rbegin() const { return Replaces.rbegin();
    [all...]
  /external/clang/include/clang/Tooling/Core/
Replacement.h 150 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite.
156 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite);
158 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite.
164 bool applyAllReplacements(const std::vector<Replacement> &Replaces,
167 /// \brief Applies all replacements in \p Replaces to \p Code.
175 const Replacements &Replaces);
177 /// \brief Calculates how a code \p Position is shifted when \p Replaces are
179 unsigned shiftedCodePosition(const Replacements& Replaces, unsigned Position);
181 /// \brief Calculates how a code \p Position is shifted when \p Replaces are
184 /// \pre Replaces[i].getOffset() <= Replaces[i+1].getOffset()
    [all...]
  /external/clang/lib/Tooling/Core/
Replacement.cpp 142 unsigned shiftedCodePositionInternal(const T &Replaces, unsigned Position) {
144 for (const auto& R : Replaces) {
158 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) {
159 return shiftedCodePositionInternal(Replaces, Position);
164 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces,
166 return shiftedCodePositionInternal(Replaces, Position);
169 void deduplicate(std::vector<Replacement> &Replaces,
171 if (Replaces.empty())
190 std::sort(Replaces.begin(), Replaces.end(), LessNoPath)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/extensions/
Replaces.java 14 * Replaces SIPHeader.
24 public class Replaces
31 public static final String NAME = "Replaces";
42 public Replaces() {
50 public Replaces(String callId) throws IllegalArgumentException {
188 * $Log: Replaces.java,v $
223 * Add Session Timer and Replaces headers
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/Tooling/Refactoring/
AtomicChange.h 73 /// \brief Adds a replacement that replaces the given Range with
79 /// \brief Adds a replacement that replaces range [Loc, Loc+Length) with
105 const Replacements &getReplacements() const { return Replaces; }
121 clang::tooling::Replacements Replaces);
129 tooling::Replacements Replaces;
  /external/clang/include/clang/Tooling/
Refactoring.h 71 /// \brief Groups \p Replaces by the file path and applies each group of
80 /// \param[in] Replaces Replacements to apply.
86 bool formatAndApplyAllReplacements(const Replacements &Replaces,
  /external/clang/tools/clang-format/
ClangFormat.cpp 229 static void outputReplacementsXML(const Replacements &Replaces) {
230 for (const auto &R : Replaces) {
258 Replacements Replaces = sortIncludes(FormatStyle, Code->getBuffer(), Ranges,
260 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces);
265 for (const auto &R : Replaces)
271 Replaces = tooling::mergeReplacements(Replaces, FormatChanges);
281 outputReplacementsXML(Replaces);
294 tooling::applyAllReplacements(Replaces, Rewrite);

Completed in 942 milliseconds

1 2 3