<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">(Note: I’m a LLVM/clang newbie)</div><div class=""><br class=""></div><div class="">I’m trying to tackle a bug about indentation in clang-format for when formatting should be done on certain lines only (<a href="https://bugs.llvm.org/show_bug.cgi?id=37975" class="">https://bugs.llvm.org/show_bug.cgi?id=37975</a>).</div><div class=""><br class=""></div><div class="">What’s the expected behavior? One could expect:</div><div class="">- absolute indentation: the indentation one would get if the whole file were formatted; or</div><div class="">- relative indentation: keep the indentation relative to the previous lines, even if those are not indented correctly and are not in the range of lines to format</div><div class=""><br class=""></div><div class="">Judging from the tests, the relative indentation has been adopted; but I could see both cases being valid.</div><div class=""><br class=""></div><div class="">Are we ok with relative indentation by default?</div><div class="">Would we be ok to add a new parameter to specify absolute indentation?</div><div class=""><br class=""></div><div class="">Any opinion/advice?</div><div class=""><br class=""></div></body></html>