Hi all,

I tried to set up a .clang-format file which mostly matches our current
coding style (a few exceptions). I used clang-format from 3.8.
The file can be seen here:
https://gist.github.com/sithhell/5a0caa8b05a78c859390c2b7be174315
Is this something we can work with?

There is multitude of possibilities on how to integrate it in your
workflow. The first would be to integrate it into your IDE/editor as
described here:
http://clang.llvm.org/docs/ClangFormat.html (look through the page, the
editor setup comes at the end).
There is also a description on how to format the changes you made before
committing. I also found this little thingy here:
https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/git-clang-format

Would be great if we could start using that tool to finally get rid of
noisy reformatting changes in our commits.

Cheers,
Thomas

On 04/13/2016 11:48 AM, Hartmut Kaiser wrote:
> John,
> 
>> I am working on multiple projects, each has different formatting styles
>> (annoying), but I recently discovered that one project uses a .clang-
>> format file in the root folder to control the style and there is an
>> eclipse plugin that searches the project path for the next-up .clang-
>> format file and uses that to reformat the code you want changed (there are
>> also Xcode/vim/other? ones too!).
>>
>> If there was a .clang-format file for hpx at the root folder of hpx, then
>> my dream of having each project I work on, formatted according to the
>> style of that project could be achieved.
>>
>> Does anyone have such a file for hpx, or can one convert easily one of
>> their existing style format control thingies, to the clang-format format?
>> (I'm sure it's quite trivial, I just don't want to do it myself).
> 
> Having this would be cool indeed. I'm not aware of anybody using
> clang-format for HPX, however.
> 
> Regards Hartmut
> ---------------
> http://boost-spirit.com
> http://stellar.cct.lsu.edu
> 
> 
> 
> _______________________________________________
> hpx-users mailing list
> [email protected]
> https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
> 


-- 
Thomas Heller
Friedrich-Alexander-Universität Erlangen-Nürnberg
Department Informatik - Lehrstuhl Rechnerarchitektur
Martensstr. 3
91058 Erlangen
Tel.: 09131/85-27018
Fax:  09131/85-27912
Email: [email protected]
_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to