|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Declarations
tools/clang/include/clang/Tooling/Core/Replacement.h 258 llvm::Error add(const Replacement &R);
References
tools/clang/include/clang/Tooling/DiagnosticsYaml.h 41 llvm::Error Err = M.Fix[Fix.getFilePath()].add(Fix);
tools/clang/lib/Format/Format.cpp 1285 auto Err = Result.add(tooling::Replacement(
1366 if (Result.add(R))
1644 Fixes.add(tooling::Replacement(Env.getSourceManager(), SR, ""));
1962 auto Err = Replaces.add(tooling::Replacement(
2131 auto Err = Replaces.add(tooling::Replacement(FileName, Imports.front().Offset,
2300 llvm::consumeError(HeaderInsertions.add(R));
2308 llvm::consumeError(Result.add(R));
2321 auto Err = Result.add(R);
2343 auto Err = Result.add(*Replace);
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp 132 auto Err = Fixes->add(tooling::Replacement(SourceMgr, Range, EndCommentText));
146 auto Err = Fixes->add(tooling::Replacement(SourceMgr, Range, EndCommentText));
tools/clang/lib/Format/SortJavaScriptImports.cpp 192 auto Err = Result.add(tooling::Replacement(
tools/clang/lib/Format/TokenAnalyzer.cpp 102 auto Err = Result.add(R);
tools/clang/lib/Format/UsingDeclarationsSorter.cpp 145 auto Err = Fixes->add(tooling::Replacement(SourceMgr, Range, ""));
169 auto Err = Fixes->add(tooling::Replacement(SourceMgr, Range, Text));
tools/clang/lib/Format/WhitespaceManager.cpp 71 return Replaces.add(Replacement);
780 auto Err = Replaces.add(tooling::Replacement(
tools/clang/lib/Tooling/Core/Replacement.cpp 523 FakeReplaces.add(Replacement(Replaces.begin()->getFilePath(),
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp 356 llvm::Error Err = Result.add(tooling::Replacement(
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp 159 llvm::Error Err = HeaderReplacements.add(
168 HeaderReplacements.add(Replacement(FilePath, UINT_MAX, 1, Header));
188 if (auto Err = Replaces.add(Replacement(
243 llvm::Error Err = E.Replaces.add(R);
255 return Replaces.add(Replacement(SM, Range, ReplacementText));
260 return Replaces.add(Replacement(SM, Loc, Length, Text));
268 llvm::Error Err = Replaces.add(R);
313 llvm::Error Err = AllReplaces.add(R);
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp 173 llvm::Error Err = (*FileToReplaces)[Replace.getFilePath()].add(Replace);
tools/clang/lib/Tooling/RefactoringCallbacks.cpp 53 Refactoring.FileToReplaces[Replacement.getFilePath()].add(
91 auto Err = Replace.add(tooling::Replacement(
111 auto Err = Replace.add(
132 Replace.add(replaceStmtWithStmt(*Result.SourceManager, *Node, *Body));
143 Replace.add(replaceStmtWithText(*Result.SourceManager, *Node, ""));
231 llvm::Error Err = Replace.add(Replacement);
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp 150 auto Err = Replaces->add(R);
187 auto Err = (*FileToReplacements)[R.getFilePath()].add(R);
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp 412 Insertions.add(tooling::Replacement(FilePath, UINT_MAX, 0, IncludeName));
428 auto Err = Replaces.add(R);
tools/clang/tools/extra/clang-move/Move.cpp 754 auto Err = Context->FileToReplacements[FilePath].add(RemoveReplacement);
771 auto Err = FileAndReplacements.second.add(
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.cpp 92 consumeError(Replacements[R.getFilePath()].add(R));
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp 146 llvm::Error Err = Replacements.add(R);
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp 87 DiagWithFix->Fix[Replacement.getFilePath()].add(Replacement);
tools/clang/tools/extra/clangd/Format.cpp 144 cantFail(Result.Changes.add(
162 Result.Changes.add(replacement(Code, Indentation, IndentAndComment)));
166 cantFail(Result.Changes.add(replacement(Code, Indentation, "")));
173 Result.Changes.add(replacement(Code, Trailing.take_front(1), "\n}")));
291 cantFail(FormattingChanges.add(R));
294 cantFail(FormattingChanges.add(tooling::Replacement(Filename,
tools/clang/tools/extra/clangd/refactor/Rename.cpp 193 if (auto Err = FilteredChanges.add(tooling::Replacement(
tools/clang/tools/extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp 71 if (auto Err = Result.add(InsertReplacement))
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp 197 if (auto Err = Replacements.add(
374 if (auto Err = Edits.front().second.Replacements.add(DeleteFuncBody))
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandMacro.cpp 124 llvm::cantFail(Reps.add(tooling::Replacement(SM, MacroRange, Replacement)));
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp 664 if (auto Err = Result.add(createFunctionDefinition(*ExtractedFunc, SM)))
666 if (auto Err = Result.add(replaceWithFuncCall(*ExtractedFunc, SM, LangOpts)))
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp 466 if (auto Err = Result.add(Target->insertDeclaration(VarName, Range)))
469 if (auto Err = Result.add(Target->replaceWithVar(Range, VarName)))
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp 188 if (auto Err = R.add(*RemoveUsing))
194 if (auto Err = R.add(tooling::Replacement(Ctx.getSourceManager(), Loc,
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp 85 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(),
89 if (auto Err = Result.add(tooling::Replacement(Ctx.getSourceManager(),
tools/clang/tools/extra/clangd/unittests/FormatTests.cpp 32 if (llvm::Error E = Merged.add(R))
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h 146 auto Err = Fixes.add(Fix);
tools/clang/unittests/Tooling/RefactoringTest.cpp 146 auto Err = Replaces.add(Deletion);
151 Err = Replaces.add(OverlappingReplacement);
157 Err = Replaces.add(Replacement(ContainedReplacement));
163 Err = Replaces.add(WrongPathReplacement);
175 auto Err = Replaces.add(R);
178 Err = Replaces.add(Replacement("x.cc", 0, 2, ""));
181 Err = Replaces.add(Replacement("x.cc", 2, 2, ""));
190 auto Err = Replaces.add(Replacement("x.cc", 0, 3, "345"));
193 Err = Replaces.add(Replacement("x.cc", 2, 3, "543"));
200 Err = Replaces.add(Replacement("x.cc", 2, 1, "5"));
210 auto Err = Replaces.add(Replacement("x.cc", 10, 3, "replace"));
213 Err = Replaces.add(Replacement("x.cc", 10, 0, "insert"));
220 Err = Replaces.add(Replacement("x.cc", 10, 0, "insert"));
223 Err = Replaces.add(Replacement("x.cc", 10, 3, "replace"));
232 auto Err = Replaces.add(ContainingReplacement);
236 Err = Replaces.add(Replacement("x.cc", 5, 3, ""));
240 Err = Replaces.add(Replacement("x.cc", 0, 10, ""));
244 Err = Replaces.add(Replacement("x.cc", 5, 5, ""));
254 auto Err = Replaces.add(Replacement("x.cc", 0, 2, ""));
258 Err = Replaces.add(Replacement("x.cc", 5, 5, ""));
263 Err = Replaces.add(After);
268 Err = Replaces.add(ContainingReplacement);
281 auto Err = Replaces.add(Insertion);
285 Err = Replaces.add(Replacement("x.cc", 5, 5, ""));
290 Err = Replaces.add(Deletion);
301 auto Err = Replaces.add(Replacement("x.cc", 0, 2, ""));
305 Err = Replaces.add(Replacement("x.cc", 0, 5, ""));
312 Err = Replaces.add(Replacement("x.cc", 1, 5, ""));
322 auto Err = Replaces.add(First);
327 Err = Replaces.add(Second);
331 Err = Replaces.add(Replacement("x.cc", 1, 10, ""));
343 auto Err = Replaces.add(Replacement("x.cc", 0, 10, "1"));
346 Err = Replaces.add(Replacement("x.cc", 10, 0, ""));
353 Err = Replaces.add(OverlappingReplacement);
358 Err = Replaces.add(Replacement("x.cc", 10, 0, ""));
365 auto Err = Replaces.add(Replacement("x.cc", 10, 2, ""));
368 Err = Replaces.add(Replacement("x.cc", 10, 0, ""));
374 Err = Replaces.add(Replacement("x.cc", 10, 0, ""));
377 Err = Replaces.add(Replacement("x.cc", 10, 2, ""));
385 auto Err = Replaces.add(Replacement("x.cc", 10, 0, "a"));
389 Err = Replaces.add(ConflictInsertion);
395 Err = Replaces.add(Replacement("x.cc", 10, 0, "a"));
398 Err = Replaces.add(Replacement("x.cc", 10, 0, "aa"));
405 Err = Replaces.add(Replacement("x.cc", 10, 0, ""));
408 Err = Replaces.add(Replacement("x.cc", 10, 3, ""));
411 Err = Replaces.add(Replacement("x.cc", 10, 0, ""));
421 auto Err = Replaces.add(Replacement("x.cc", 10, 5, "a"));
424 Err = Replaces.add(Replacement("x.cc", 8, 2, "a"));
427 Err = Replaces.add(Replacement("x.cc", 10, 0, "b"));
473 auto Err = Replaces.add(Replacement(
478 Err = Replaces.add(Replacement(Context.Sources, Context.getLocation(ID, 2, 1),
495 auto Err = Replaces.add(ConflictReplacement);
tools/clang/unittests/Tooling/ReplacementTest.h 30 auto Err = Result.add(R);
tools/clang/unittests/Tooling/RewriterTest.cpp 41 auto Err = Replaces.add(Replacement("<file>", 6, 6, ""));