<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">You should also ask the MLIR folks. They use the same clang-format convention as these files.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> flang-dev <flang-dev-bounces@lists.llvm.org> <b>
On Behalf Of </b>David Truby via flang-dev<br>
<b>Sent:</b> Thursday, February 13, 2020 1:40 PM<br>
<b>To:</b> Johannes Doerfert <jdoerfert@anl.gov><br>
<b>Cc:</b> David Truby via flang-dev <flang-dev@lists.llvm.org><br>
<b>Subject:</b> Re: [flang-dev] Code formatting alignment with LLVM<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Hi Johannes,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Hopefully I can clarify: the supposed issue here is that the alignment of the comments on lines 321,322 on the left and 323, 324 on the right have changed, which makes those lines appear as having
 been changed where they actually haven't other than formatting due to other line changes.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Does that make some sense?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">David<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;color:black">
<hr size="1" width="98%" align="center">
</span></div>
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From:</span></b><span style="font-size:12.0pt;color:black"> Johannes Doerfert<br>
<b>Sent:</b> Thursday, 13 February 2020 21:37<br>
<b>To:</b> David Truby<br>
<b>Cc:</b> David Truby via flang-dev<br>
<b>Subject:</b> Re: [flang-dev] Code formatting alignment with LLVM <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">On 02/13, David Truby wrote:<br>
> Hi Johannes,<br>
> I didn't realise we could upload the same diff on Phabricator to look at, that's really helpful!<br>
> <br>
> I believe we are looking at lines 320-324 of PFTBuilder.h.<br>
<br>
I thought we talk about alignment "issues" and this seems not to be one.<br>
<br>
<br>
> I don't see a real significant difference in the way this is displayed I suppose. Phabricator doesn't pick up that lines 323 and 324 on the right are the same as 312, 322 on the left sans formatting.<br>
> However, I think that even if the formatting was the same Phabricator would display this in the same way as that's just how it displays diffs?<br>
> <br>
> Maybe Tim can comment on what he thinks of this?<br>
> <br>
> Thanks<br>
> David Truby<br>
> <br>
> <br>
> ________________________________<br>
> From: Johannes Doerfert<br>
> Sent: Thursday, 13 February 2020 21:27<br>
> To: David Truby<br>
> Cc: David Truby via flang-dev<br>
> Subject: Re: [flang-dev] Code formatting alignment with LLVM<br>
> <br>
> On 02/13, David Truby via flang-dev wrote:<br>
> > Hi all,<br>
> ><br>
> > Tim Kieth from Nvidia has provided a specific example from the recent<br>
> > FIR pull request where the indentation rules caused spurious diffs<br>
> > (see this comment:<br>
> > <a href="https://github.com/flang-compiler/f18/pull/945#issuecomment-585856610" target="_blank">
https://github.com/flang-compiler/f18/pull/945#issuecomment-585856610</a>).<br>
> ><br>
> > I'm curious if this is also something that shows up badly in<br>
> > Phabricator or if that has a better way of showing diffs involving<br>
> > whitespace. Is anyone familiar enough with Phabricator to comment on<br>
> > this? I wonder if Phabricator might just be better at handling code<br>
> > reviews of this ilk better, meaning that this problem is less visible<br>
> > to clang/llvm developers.<br>
> ><br>
> <br>
> Here is the diff:<br>
> <a href="https://reviews.llvm.org/differential/diff/244525/" target="_blank">https://reviews.llvm.org/differential/diff/244525/</a><br>
> <br>
> What line numbers are we looking at again?<br>
> <br>
> <br>
> > Thanks<br>
> > David Truby<br>
> ><br>
> > ________________________________<br>
> > From: flang-dev <<a href="mailto:flang-dev-bounces@lists.llvm.org">flang-dev-bounces@lists.llvm.org</a>> on behalf of David Truby via flang-dev <<a href="mailto:flang-dev@lists.llvm.org">flang-dev@lists.llvm.org</a>><br>
> > Sent: 11 February 2020 10:20<br>
> > To: <a href="mailto:flang-dev@lists.llvm.org">flang-dev@lists.llvm.org</a> <<a href="mailto:flang-dev@lists.llvm.org">flang-dev@lists.llvm.org</a>><br>
> > Subject: [flang-dev] Code formatting alignment with LLVM<br>
> ><br>
> > Hi all,<br>
> ><br>
> > We have been having a discussion on the GitHub issue tracker about code formatting (and specifically clang-format settings) and whether to align closer with the rest of the project, which you can find here:
<a href="https://github.com/flang-compiler/f18/pull/945" target="_blank">https://github.com/flang-compiler/f18/pull/945</a>. Since the discussion there hasn’t moved much recently I’d like to start a discussion here so we can get input from a wider group of
 people.<br>
> ><br>
> > My opinion is that regardless of technical preferences we shouldn’t diverge from the style of the rest of the project as much as we currently do, or at least if we want to do that then we should have a discussion with the wider community about whether that
 is acceptable to them.<br>
> ><br>
> > Does anyone else have any input on this?<br>
> ><br>
> > Thanks<br>
> > David Truby<br>
> <br>
> > _______________________________________________<br>
> > flang-dev mailing list<br>
> > <a href="mailto:flang-dev@lists.llvm.org">flang-dev@lists.llvm.org</a><br>
> > <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev" target="_blank">
https://lists.llvm.org/cgi-bin/mailman/listinfo/flang-dev</a><br>
> <br>
> <br>
> --<br>
> <br>
> Johannes Doerfert<br>
> Researcher<br>
> <br>
> Argonne National Laboratory<br>
> Lemont, IL 60439, USA<br>
> <br>
> <a href="mailto:jdoerfert@anl.gov">jdoerfert@anl.gov</a><br>
<br>
-- <br>
<br>
Johannes Doerfert<br>
Researcher<br>
<br>
Argonne National Laboratory<br>
Lemont, IL 60439, USA<br>
<br>
<a href="mailto:jdoerfert@anl.gov">jdoerfert@anl.gov</a><o:p></o:p></p>
</div>
</div>
<div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" align="center">
</div>
</div>
<div>
<p class="MsoNormal">This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact
 the sender by reply email and destroy all copies of the original message. <o:p></o:p></p>
</div>
<div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" align="center">
</div>
</div>
</div>
</body>
</html>