[haiku-development] Re: haiku-format update

  • From: Sumit Lahiri <shekharhiran@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 5 Nov 2020 22:27:45 +0530

Hi,

I am Ph.D. researcher and LLVM Developer. Looking for ways to contribute to
Haiku. Are there any LLVM related Haiku work that needs to be done? I would
be happy to do that. Please let me know.

Thank you
Sumit Lahiri

On Wed, Nov 4, 2020 at 8:36 PM Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
wrote:

Hello there,

I worked a bit on clang-format/haiku-format today. If you have not heard
of it,
clang-format is a tool (part of the llvm/clang compiler project) that can
reformat
code to follow coding guidelines automatically. Haiku-format is a project
to extend
clang-format and allow it to be used to apply the Haiku coding guidelines.
This will
help new contributors to get their code properly formatted, and save a lot
of time,
effort and annoyance in reviewing change requests. However, the tool is
not yet working
well enough to allow for this. It does not implement the coding style well
enough, and
in some cases it will even change the behavior of the code (oops).

Work done:
- Rebasing the work of Owen and Korli on a more up to date clang 11
sourcecode
- Did some testing, and opened several issues at the haiku-format
repository

You can find my work here: https://github.com/viveris/llvm-project ;(using
my employer
github account because I did this as part of my "opensource contribution"
time)
And the current list of bugs:
https://github.com/owenca/haiku-format/issues

Help is welcome:
- Testing the tool: try to reformat some of your code, and if you think
the result
  is not great, report bugs with examples on the haiku-format bugtracker.
- Improving the tool and fixing some of the problems

Eventually I will try to submit this to the clang project so they can
include it in
the official releases of clang-format, and we don't need to maintain our
own fork anymore.

Thanks,
--
Adrien.



Other related posts: