Re: [libmicrohttpd] clang formatting discussion via [gnunet-developers]

2019-04-18 Thread Christian Grothoff
Dear MHD hackers, There has been a (long-ish) discussion about using clang-format for source formatting among the GNUnet developers. WDYT about applying the same/similar rules to GNU libmicrohttpd and also enforcing them via Git hooks on commit? I've attached the .clang-format file that resulted

Re: [libmicrohttpd] clang formatting discussion via [gnunet-developers]

2019-04-18 Thread silvioprog
Hello dudes, IMHO it would be nice to apply this file at MHD repository. As Martin commented on his e-mail below, many text editors provides integration with clang-format. I've used other CLang's stuff too, and one of my favorites is the CLang-Tidy . :-)

Re: [libmicrohttpd] clang formatting discussion via [gnunet-developers]

2019-04-18 Thread Tim Rühsen
Without looking into the details... basically a good idea ! We also opened an MR (WIP) for Wget2, but using GNU indent for it. The rules should be clear and easy, without nitpicks. That would prevent a clang-format lock-in situation. One of the great things here is that you can locally use your o

Re: [libmicrohttpd] clang formatting discussion via [gnunet-developers]

2019-04-18 Thread Darshit Shah
This is a good idea and as Tim also mentioned, is something I've been trying to get for GNU Wget2 as well. However, with regards to clang format, one complaint I've heard from another project is that it is quite sensitive to the specific version of the binary. I don't have first hand experience, b