[haiku-development] Re: haiku-format for C++ developers
- From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Tue, 07 Aug 2018 08:09:49 +0000
5 août 2018 18:18 "Owen Pan" <owenpiano@xxxxxxxxx> a écrit:
Inspired by this year's GSoC ideas
(https://www.haiku-os.org/community/gsoc/2018/ideas#other) and
clang-format, I have developed a C++ code formatter for Haiku's coding
guidelines. Here is the
link: https://github.com/owenca/haiku-format
It can be built on both x86 and x86_64. Just run build.sh from the top
folder, and haiku-format
will be created in the same folder. Please try it out and let me know what
you think.
Hi Owen,
Thanks, it looks like a nice tool to have!
I have several questions:
- Why can't we use the standard clang-format? What are the differences?
- Why does this need to download llvm sources during build? Can't we use a
packaged llvm?
- Can this be integrated into Gerrit? It would be great to have a bot there
giving Code-Change: +1 or -1 on submitted patches automatically. It would save
a lot of time for those of us reviewing the changes.
Other related posts: