Home
last modified time | relevance | path

Searched refs:NewText (Results 1 – 6 of 6) sorted by relevance

/llvm-project/clang/lib/Format/
H A DQualifierAlignmentFixer.cpp59 const CharSourceRange &Range, std::string NewText) { in replaceToken() argument
60 auto Replacement = tooling::Replacement(SourceMgr, Range, NewText); in replaceToken()
84 std::string NewText{}; in insertQualifierAfter() local
85 NewText += First->TokenText; in insertQualifierAfter()
86 NewText += " " + Qualifier; in insertQualifierAfter()
87 replaceToken(SourceMgr, Fixes, Range, NewText); in insertQualifierAfter()
97 std::string NewText = " " + Qualifier + " "; in insertQualifierBefore() local
98 NewText += First->TokenText; in insertQualifierBefore()
100 replaceToken(SourceMgr, Fixes, Range, NewText); in insertQualifierBefore()
125 std::string NewText; in rotateTokens() local
[all...]
H A DObjCPropertyAttributeOrderFixer.cpp128 std::string NewText; in sortPropertyAttributes()
134 NewText += ", "; in sortPropertyAttributes()
137 NewText += PropertyEntry.Attribute; in sortPropertyAttributes()
140 NewText += '='; in sortPropertyAttributes()
141 NewText += Value; in sortPropertyAttributes()
147 auto Replacement = tooling::Replacement(SourceMgr, Range, NewText); in sortPropertyAttributes()
131 std::string NewText; sortPropertyAttributes() local
/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
H A DTweakTesting.cpp112 auto NewText = It.second.apply(); in apply() local
113 if (!NewText) in apply()
114 return "bad edits: " + llvm::toString(NewText.takeError()); in apply()
115 llvm::StringRef Unwrapped = unwrap(Context, *NewText); in apply()
/llvm-project/clang-tools-extra/clang-tidy/google/
H A DTodoCommentCheck.cpp37 std::string NewText = ("// TODO(" + Twine(User) + "): " + Comment).str(); in HandleComment() local
41 NewText); in HandleComment()
/llvm-project/clang-tools-extra/clang-reorder-fields/
H A DReorderFieldsAction.cpp88 StringRef NewText = in addReplacement()
92 CharSourceRange::getTokenRange(Old), NewText, in addReplacement()
86 StringRef NewText = addReplacement() local
/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp2188 SmallString<512> NewText; in applyEditsToTemp()
2189 llvm::raw_svector_ostream OS(NewText); in applyEditsToTemp()
2202 TmpOut.write(NewText.data(), NewText.size()); in applyEditsToTemp()
2187 SmallString<512> NewText; applyEditsToTemp() local