GSOC 2021 : Improvements to clang-format and clang-tidy to format code according to haiku coding guidelines
I am Saloni B.Tech.(3rd year), Computer Science and Engineering(CSE) student of Guru Nanak Dev Engineering College, India. I have been selected for Google Summer of Code 2021 to work with Haiku on the project Improvements to clang-format and clang-tidy to format code according to haiku coding guidelines. My mentors are Preetpal Kaur and Adrien Destugues.
About my project:
Haiku has its own coding standards which describe how the code should be formatted. Haiku-format is a tool that reformats code according to Haiku coding style but it is not giving desired results. So, we need to format the code such that when this code is run on Haiku the coding style of code gets updated according to haiku guidelines, but it has to be compiled on the developer machine and then run manually.
The tool ' haiku-format ' is work in progress which can be used to check the format according to guidelines which will be integrated with concourse to automate the process of checking coding style.
Existing problem in Code review:
Haiku code review is done manually due to which there was some delay between the patch submission and the initial feedback. A lot of time is spent just on checking the code format due to which most review comments are only about code formatting and it becomes difficult for reviewers to focus on functionality of the patch.
Work done so far
Solved an issue to remove extra spacing for std::nothrow.
Gerrit merged changes according to haiku guidelines.
- According to Haiku’s requirement for if-else statement clang-tidy google-readability-braces-around-statements.ShortStatementLines with value ‘2’ can be used i.e. adding braces to if statement will only trigger when there will be 2 or more lines. So, the idea is to extract the code from clang-tidy and integrate it in the clang-format for better results.
First of all I say a big thank you to the haiku community for selecting me this year. I will try to give my best to make this project more successful. :)
Thankyou to all :)
- Update #3 from the Promotion Team
- GSOC 2021:Progress Report of Improvements to clang-format
- GSoC 2021 Progress Update 3: Coding style checker bot for Gerrit
- Haiku activity report - June 2021
- GSoC 2021 Progress Update 2: Modernizing Cardie (Caya)
- GSoC 2021: XFS support progress update
- GSoC 2021 Progress Update 2: Coding style checker bot for Gerrit
- Translation Work Needed in Preparation for Beta 3
- GSoC 2021 Progress Update 1: Modernizing Caya
- GSoC 2021 Progress Update 1: Coding style checker bot for Gerrit