<div dir="ltr">Am Mo., 2. März 2020 um 11:40 Uhr schrieb David Truby via flang-dev <<a href="mailto:flang-dev@lists.llvm.org">flang-dev@lists.llvm.org</a>>:<br>> Thanks for the reply. My understanding of the concern is that if you change a line that has trailing comments in a block for example, and the length of the line changes, all the comments on other lines will be realigned, and the diff will show every line as having changed even though only one has. Does that make sense? <br><br><div>Trailing comments are rare in the LLVM code base. Usually comments are before the line, since not a lot of text fits into the 80 column limit after a code statement. clang-format indents all comments to the indention of the first comment, such as:</div><div><br></div><font face="monospace">AStatmentLineUsingATypicalAmountOfCharacters(); // a comment</font><div><font face="monospace">                                                // trailing on this</font></div><div><font face="monospace">                                                // statement consumes <br>                                                // multiple lines</font><div>                                                                                    </div><div>My suggestion is to not use trailing comments. clang-format otherwise only re-formats comments if exceeding the 80 column limit.</div><div><br></div><div>Michael</div></div><div><br></div></div>