[vtk-developers] PROPOSAL: Changing VTK's indentation style

David E DeMarle dave.demarle at kitware.com
Thu Sep 10 10:49:43 EDT 2015


Two points Berk and I were just discussing regarding John's desire for
looser restrictions in the case of modules that are maintained by specific
groups:

* code style in third party modules within vtk are pretty much wide open.
The only requirements really are that the license is compatible and that it
compiles on the dashboards (warnings can be suppressed even). The VTK code
that calls the third party code needs to comply with VTK style obviously.

* We are going to be building up the external module infrastructure which
will introduce a structured and graded path to module integration. We'll
need to come up with specific guidelines but we might expect that the
further away from the "core" a module is, the less strict the style rule
enforcement will be.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Sep 10, 2015 at 9:24 AM, Berk Geveci <berk.geveci at kitware.com>
wrote:

> I am still against your proposal John. For reference, it was this:
>
> > I would like to reserve the right to use my own coding style on the
> contributed class(es)
>
> It was not changing VTK's style to something different. Looking at that
> thread, it also looked like everyone that contributed to it except you were
> against it. Also looking at this thread, it sounds like many people are
> still against mixing multiple styles in the same codebase.
>
> Best,
> -berk
>
>
> On Thu, Sep 10, 2015 at 2:49 AM, Biddiscombe, John A. <biddisco at cscs.ch>
> wrote:
>
>> +lots
>>
>>
>>
>> Like the Scottish who say “Anyone but England”, I would like to
>> emphatically vote in favour of changing VTK’s code style to “Anything, but
>> what we have now”, it certainly can’t get worse.
>>
>>
>>
>> Yours
>>
>>
>>
>> JB
>>
>> PS. It feels like 2006! I made my views felt then (and many times
>> previously), and Berk has criticised my views on it for the last 10 years,
>> so I shan’t say any more!
>>
>>
>> http://vtk.1045678.n5.nabble.com/vtk-Coding-style-Proposed-change-td1251702.html
>>
>>
>>
>>
>>
>> *From:* vtk-developers [mailto:vtk-developers-bounces at vtk.org] *On
>> Behalf Of *Berk Geveci
>> *Sent:* 09 September 2015 15:09
>> *To:* VTK Developers
>> *Subject:* [vtk-developers] PROPOSAL: Changing VTK's indentation style
>>
>>
>>
>> Hi folks,
>>
>>
>>
>> What would you think of changing VTK's indentation style from:
>>
>>
>>
>> if ()
>>
>>   {
>>
>>   // ..
>>
>>   }
>>
>>
>>
>> to
>>
>>
>>
>> if ()
>>
>> {
>>
>>   // ...
>>
>> }
>>
>>
>>
>> ?
>>
>>
>>
>> Our current style (modified Whitesmiths I am told) is used only by very
>> few projects,
>>
>> mostly related to VTK ones (ITK, CMake). It is poorly supported by some
>> of the newer editors
>>
>> that are widely popular (Sublime, TextMate etc.) and IMO foreign to the
>> new generation
>>
>> C++ developers.
>>
>>
>>
>> The style I propose is modified Allman style - with indentation changed
>> from 4 to 2 spaces.
>>
>> It is much more common.
>>
>>
>>
>> If approved by the community, we would change VTK wholesale. This should
>> not be
>>
>> an issue for history as git blame/annotate can be told to skip white
>> spaces.
>>
>>
>>
>> Best,
>>
>> -berk
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150910/03d07d9f/attachment-0001.html>


More information about the vtk-developers mailing list