https://bugs.kde.org/show_bug.cgi?id=475921

--- Comment #4 from Igor Kushnir <igor...@gmail.com> ---
(In reply to shlyonskikh.alexey from comment #2)
> I think the most obvious solution that will work in every case is making a
> separate plugin that passes --offset and --length to clang-format, then
> replaces the whole file with the result. 
Before anyone sets to write such a plugin, [s]he should make sure (e.g.
thoroughly test) that these two clang-format options make it work in the same
way as extractFormattedTextFromContext() aims to. That is, that clang-format
never automatically extends formatting to surrounding code and never breaks
code in the formatted code fragment.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to