When runnformatting clang-format on specific linesonly certain lines for a file, two types of indentation could be expectedi:
- absolute indentation: the indentation one would get if the whole file were formatted; or
- relative indentation: keep: the indentation is relative to the previous lines, even if those are not indented correctly (i.e., would be indented differently if the whole file was formatted)even if those are not indented correctly and are not in the range of lines to format
The default behavior for `clang-format doe` is relative indentationformatting. This diff is a proposal to change to absolute indentation -- WIP existing tests would need to be fixed if we're ok with this diffBut both relative and absolute indentation have valid use cases.
Initial bug report / feature request: https://bugs.llvm.org/show_bug.cgi?id=37975
This diff adds a style option to specify absolute indentation.