Hi Rostislav,

as it happens we have more or less finalized our .clang_format file. Sometime 
in the next few weeks there will be a big formatting commit as well as an 
updated style guide and the clang_format file added to the MITK root.

And yes, you are right, this has been long overdue…

Best,
Caspar

Von: Rostislav Khlebnikov [mailto:[email protected]]
Gesendet: Montag, 10. August 2015 19:23
An: mitk-users
Betreff: [mitk-users] Contributions and a bit more

Hi guys,

now that I finally finished the migration to 2015.05, I think it's time to talk 
about the contributions that I'd like to make to the MITK project (some of them 
discussed at the users' meeting).
I will write an e-mail for each topic so that the discussion is more focused.

Just as an "a bit more", I would like to propose using CLang format 
<http://clang.llvm.org/docs/ClangFormat.html> to manage the formatting of 
source code in MITK. It's definitely not a big issue, but I have used it now 
for a while and I enjoy it tremendously.
I use Visual Studio to edit my code and the plugin is working flawlessly. I 
think that integrating it with %your_favourite_editor% should be easy.

It is as simple as putting a ".clang-format" file in the root of MITK and 
editing it until the desired format is achieved. Mine looks like this:

BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 128
AccessModifierOffset: -4
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BreakBeforeBraces: Linux
BreakConstructorInitializersBeforeComma: true
PointerBindsToType: true

Cheers,
   Rostislav.
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to