<div dir="ltr">+1 to 2 or 4 spaces via a standard clang-format style<br><div><br></div><div>I use multiple different editors/ides/code formatters and they all want to treat tabs differently :|</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 10, 2018 at 11:57 AM Heiskanen Mika (FMI) <<a href="mailto:Mika.Heiskanen@fmi.fi">Mika.Heiskanen@fmi.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello,<br>
</p>
<p><br>
</p>
<p>Perhaps you should consider using automatic formatting tools such as clang-format?<br>
</p>
<p>Just choose the style which is as close to your current style as possible, and then</p>
<p>make as few changes to your .clang-format file as possible. Automatic tools will<br>
</p>
<p>make your life much easier. Sometimes you will want to disable automatic formatting,</p>
<p><span style="text-align:center;font-size:12pt">and you can do that directly in the sou</span><span style="text-align:center;font-size:12pt">rce code. </span><span style="text-align:center;font-size:12pt">You can make your editor automatically</span></p>
<p><span style="text-align:center;font-size:12pt">format the </span><span style="font-size:12pt">code, and </span><span style="font-size:12pt">you can add a git-hook to automatically format commits.</span></p>
<p><br>
</p>
<p>Mika<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div id="m_-8665434174537697754divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> geos-devel <<a href="mailto:geos-devel-bounces@lists.osgeo.org" target="_blank">geos-devel-bounces@lists.osgeo.org</a>> on behalf of Martin Davis <<a href="mailto:mtnclimb@gmail.com" target="_blank">mtnclimb@gmail.com</a>><br>
<b>Sent:</b> Monday, September 10, 2018 21:24<br>
<b>To:</b> GEOS Development List<br>
<b>Subject:</b> Re: [geos-devel] TABS or SPACES - ALL DEVELOPERS and PSC Vote</font>
<div> </div>
</div>
<div>
<div dir="ltr">My vote is the same as Vicky's - spaces, with indenting using multiples of 2.
<div><br>
</div>
<div>Reasons:</div>
<div>- lots of religious discussion on the interweb about tabs vs spaces, but a quick read seems to indicate that the spaces camp is more popular</div>
<div>- spaces are more deterministic than tabs</div>
<div>- 2 rather than 4 gives more space for code</div>
<div><br>
</div>
<div>Martin</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Mon, Sep 10, 2018 at 9:45 AM Regina Obe <<a href="mailto:lr@pcorp.us" target="_blank">lr@pcorp.us</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As many know the GEOS code base is a mess of different formatting.<br>
Particular with tabs and spaces.<br>
Our .editorconfig is equally messy in the name of compromise.<br>
<br>
I'd like to make a Motion starting with GEOS 3.8 to reformat the .cpp, .h,<br>
and .c<br>
<br>
I think the other extensions are pretty standard and should stay as they<br>
are.<br>
<br>
That said, what would people prefer?<br>
<br>
I vote:<br>
<br>
TABS<br>
<br>
<br>
Please all PSC and all developers who commit to GEOS voice an opinion.<br>
We'll count the votes and go with the consensus with each vote counting<br>
equally.<br>
If any non-dev, non-PSC have an opinion, feel free to voice an opinion<br>
keeping note we may not care about your opinion, but might possibly sway<br>
ours :)<br>
<br>
Once done - pramsey or cvvergara or strk will do a 1000 pound commit to<br>
update all these files (including the editorconfig)<br>
<br>
Thanks,<br>
Regina<br>
<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geos-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geos-devel</a></blockquote>
</div>
</div>
</div>
</div>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org" target="_blank">geos-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geos-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geos-devel</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--<div><a href="http://schwehr.org" target="_blank">http://schwehr.org</a></div></div>