Searched refs:Replaces (Results 1 - 6 of 6) sorted by relevance
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Tooling/Core/ |
H A D | Replacement.cpp | 147 unsigned shiftedCodePositionInternal(const T &Replaces, unsigned Position) { argument 149 for (const auto& R : Replaces) { 163 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) { argument 164 return shiftedCodePositionInternal(Replaces, Position); 169 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces, argument 171 return shiftedCodePositionInternal(Replaces, Position); 174 void deduplicate(std::vector<Replacement> &Replaces, argument 176 if (Replaces.empty()) 195 std::sort(Replaces.begin(), Replaces 226 applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite) argument 242 applyAllReplacements(const std::vector<Replacement> &Replaces, Rewriter &Rewrite) argument 257 applyAllReplacements(StringRef Code, const Replacements &Replaces) argument [all...] |
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Tooling/Core/ |
H A D | Replacement.h | 143 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 149 bool applyAllReplacements(const Replacements &Replaces, Rewriter &Rewrite); 151 /// \brief Apply all replacements in \p Replaces to the Rewriter \p Rewrite. 157 bool applyAllReplacements(const std::vector<Replacement> &Replaces, 160 /// \brief Applies all replacements in \p Replaces to \p Code. 164 std::string applyAllReplacements(StringRef Code, const Replacements &Replaces); 166 /// \brief Calculates how a code \p Position is shifted when \p Replaces are 168 unsigned shiftedCodePosition(const Replacements& Replaces, unsigned Position); 170 /// \brief Calculates how a code \p Position is shifted when \p Replaces are 173 /// \pre Replaces[ [all...] |
/freebsd-11.0-release/contrib/llvm/tools/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 229 static void outputReplacementsXML(const Replacements &Replaces) { argument 230 for (const auto &R : Replaces) { 258 Replacements Replaces = sortIncludes(FormatStyle, Code->getBuffer(), Ranges, local 261 tooling::applyAllReplacements(Code->getBuffer(), Replaces); 262 for (const auto &R : Replaces) 268 Replaces = tooling::mergeReplacements(Replaces, FormatChanges); 278 outputReplacementsXML(Replaces); 291 tooling::applyAllReplacements(Replaces, Rewrite);
|
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Format/ |
H A D | WhitespaceManager.h | 47 /// \brief Replaces the whitespace in front of \p Tok. Only call once for 193 /// \brief Fill \c Replaces with the replacements for all effective changes. 207 tooling::Replacements Replaces; member in class:clang::format::WhitespaceManager
|
H A D | WhitespaceManager.cpp | 47 Replaces.clear(); 95 return Replaces; 105 return Replaces; 501 Replaces.insert(tooling::Replacement(
|
H A D | Format.cpp | 1743 // necessary replacement to 'Replaces'. 'Includes' must be in strict source 1748 tooling::Replacements &Replaces, unsigned *Cursor) { 1795 Replaces.insert(tooling::Replacement(FileName, Includes.front().Offset, 1802 tooling::Replacements Replaces; local 1804 return Replaces; 1867 sortIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, 1879 sortIncludes(Style, IncludesInBlock, Ranges, FileName, Replaces, Cursor); 1880 return Replaces; 1745 sortIncludes(const FormatStyle &Style, const SmallVectorImpl<IncludeDirective> &Includes, ArrayRef<tooling::Range> Ranges, StringRef FileName, tooling::Replacements &Replaces, unsigned *Cursor) argument
|
Completed in 68 milliseconds