Searched refs:Replaces (Results 1 - 13 of 13) sorted by relevance

/netbsd-current/external/apache2/llvm/dist/clang/tools/clang-format/fuzzer/
H A DClangFormatFuzzer.cpp22 auto Replaces = reformat(Style, s, clang::tooling::Range(0, s.size())); local
23 auto Result = applyAllReplacements(s, Replaces);
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/Core/
H A DReplacement.h219 explicit Replacements(const Replacement &R) { Replaces.insert(R); }
260 /// Merges \p Replaces into the current replacements. \p Replaces
262 LLVM_NODISCARD Replacements merge(const Replacements &Replaces) const;
272 unsigned size() const { return Replaces.size(); }
274 void clear() { Replaces.clear(); }
276 bool empty() const { return Replaces.empty(); }
278 const_iterator begin() const { return Replaces.begin(); }
280 const_iterator end() const { return Replaces.end(); }
282 const_reverse_iterator rbegin() const { return Replaces
310 ReplacementsImpl Replaces; member in class:clang::tooling::Replacements
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp33 Replaces(E.getReplacements().begin(), E.getReplacements().end()) {}
45 std::vector<clang::tooling::Replacement> Replaces; member in struct:__anon1139::NormalizedAtomicChange
61 Io.mapRequired("Replacements", Doc.Replaces);
76 Io.mapRequired("Replacements", Keys->Replaces);
109 const clang::tooling::Replacements &Replaces) {
118 for (const clang::tooling::Replacement &R : Replaces) {
185 Replacements Replaces; local
188 if (auto Err = Replaces.add(Replacement(
191 return Replaces;
217 clang::tooling::Replacements Replaces)
107 getRangesForFormating(llvm::StringRef Code, unsigned ColumnLimit, ApplyChangesSpec::FormatOption Format, const clang::tooling::Replacements &Replaces) argument
213 AtomicChange(std::string Key, std::string FilePath, std::string Error, std::vector<std::string> InsertedHeaders, std::vector<std::string> RemovedHeaders, clang::tooling::Replacements Replaces) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Core/
H A DReplacement.cpp194 for (const auto &R : Replaces) {
216 // `R` and `Replaces` are order-independent if applying them in either order
223 // the code after the existing replacements `Replaces` are applied.
225 // A Replacements set that is `Replaces` referring to the code after `R` is
228 for (const auto &Replace : Replaces)
229 ReplacesShiftedByRs.Replaces.insert(
231 // This is equivalent to applying `Replaces` first and then `R`.
233 // This is equivalent to applying `R` first and then `Replaces`.
242 R, *Replaces.begin());
247 if (!Replaces
510 calculateRangesAfterReplacements(const Replacements &Replaces, const std::vector<Range> &Ranges) argument
567 applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) argument
579 applyAllReplacements(StringRef Code, const Replacements &Replaces) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h117 const Replacements &getReplacements() const { return Replaces; }
135 clang::tooling::Replacements Replaces);
143 tooling::Replacements Replaces; member in class:clang::tooling::AtomicChange
/netbsd-current/external/apache2/llvm/dist/clang/tools/clang-format/
H A DClangFormat.cpp299 static void outputReplacementsXML(const Replacements &Replaces) { argument
300 for (const auto &R : Replaces) {
310 emitReplacementWarnings(const Replacements &Replaces, StringRef AssumedFileName, argument
312 if (Replaces.empty())
322 for (const auto &R : Replaces) {
337 static void outputXML(const Replacements &Replaces, argument
352 outputReplacementsXML(Replaces);
412 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, local
414 auto ChangedCode = tooling::applyAllReplacements(Code->getBuffer(), Replaces);
420 Ranges = tooling::calculateRangesAfterReplacements(Replaces, Range
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Format/
H A DWhitespaceManager.h46 /// Replaces the whitespace in front of \p Tok. Only call once for
210 /// Fill \c Replaces with the replacements for all effective changes.
227 tooling::Replacements Replaces; member in class:clang::format::WhitespaceManager
H A DFormat.cpp1550 // Replaces double/single-quoted string literal as appropriate, re-escaping
2255 // adding the necessary replacement to 'Replaces'. 'Includes' must be in strict
2264 StringRef Code, tooling::Replacements &Replaces,
2344 auto Err = Replaces.add(tooling::Replacement(
2364 tooling::Replacements &Replaces,
2419 Replaces, Cursor);
2435 sortCppIncludes(Style, IncludesInBlock, Ranges, FileName, Code, Replaces,
2438 return Replaces;
2459 // JavaImportGroups, then adding the necessary replacement to 'Replaces'.
2466 StringRef Code, tooling::Replacements &Replaces) {
2261 sortCppIncludes(const FormatStyle &Style, const SmallVectorImpl<IncludeDirective> &Includes, ArrayRef<tooling::Range> Ranges, StringRef FileName, StringRef Code, tooling::Replacements &Replaces, unsigned *Cursor) argument
[all...]
H A DWhitespaceManager.cpp72 return Replaces.add(Replacement);
92 return Replaces;
105 return Replaces;
979 auto Err = Replaces.add(tooling::Replacement(
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Format/
H A DFormat.h3511 /// \p Replaces on success; otheriwse, return an llvm::Error carrying
3514 formatReplacements(StringRef Code, const tooling::Replacements &Replaces,
3517 /// Returns the replacements corresponding to applying \p Replaces and
3531 cleanupAroundReplacements(StringRef Code, const tooling::Replacements &Replaces,
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/
H A Darray.d40 $(TD Replaces all occurrences of a certain subrange and puts the result into a given array.
43 $(TD Replaces all occurrences of a certain subrange and puts the result into an output range.
2803 Replaces elements from `array` with indices ranging from `from`
2944 Replaces elements from `array` with indices ranging from `from`
3148 Replaces the first occurrence of `from` with `to` in `subject`.
3252 Replaces the last occurrence of `from` with `to` in `subject`.
H A Dstring.d4906 Replaces spaces in `s` with the optimal number of tabs.
4946 Replaces spaces in range `r` with the optimal number of tabs.
5263 Replaces the characters in `str` which are keys in `transTable` with
5832 Replaces the characters in `str` which are in `from` with the
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dstring.d4364 Replaces spaces in $(D s) with the optimal number of tabs.
4404 Replaces spaces in range $(D r) with the optimal number of tabs.
4719 Replaces the characters in $(D str) which are keys in $(D transTable) with
5525 Replaces the characters in $(D str) which are in $(D from) with the

Completed in 313 milliseconds