The new error information contains the type of error (e.g. overlap or bad file path)
and the replacement(s) that is causing the error. This enables us to resolve some errors.
For example, for insertion at the same location conflict, we need to know the
existing replacement which conflicts with the new replacement in order to calculate
the new position to be insert before/after the existing replacement (for merging).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/clang/Tooling/Core/Replacement.h | ||
---|---|---|
157 ↗ | (On Diff #78519) | Can you use pass by value and std::move here? |
162 ↗ | (On Diff #78519) | Here too. |
174 ↗ | (On Diff #78519) | This on the other hand should return a const ref. |
178 ↗ | (On Diff #78519) | This too. |
lib/Tooling/Core/Replacement.cpp | ||
157 ↗ | (On Diff #78519) | Drop the 's here. |