Issue 166121
Summary clang-format -lines modifies code outside the specified range
Labels clang-format
Assignees
Reporter just-some-entity
    When using an editor with “format on paste” enabled via clang-format, pasting an incomplete line, like in the example below, causes the following line to be indented, even if -lines is set to target only the pasted line. Pasting a partial line while using format-on-paste to adjust its indentation is a fairly reasonable workflow in my opinion, so it would be nice to either "fix" this behaviour or add a clang-format option to disable it.

```
QWindow* // pasted line


    class RhiResourceManager
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to