llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.98k stars 11.95k forks source link

Adding a new BasedOnStyle to clang-format with a couple new options (or just adding these options separately) for a project #102582

Open ionagamed opened 3 months ago

ionagamed commented 3 months ago

Hey!

https://github.com/ytsaurus/ytsaurus is using a custom styleguide (https://github.com/ytsaurus/ytsaurus/blob/main/yt/styleguide/cpp.md), and we are currently trying to patch clang-format on our side to add some options that we need.

https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options says that in order to merge patches into the upstream repo we need to be a big project with dozens of contributors (which we are), have a publically accessible styleguide (linked above), and have a person willing to contribute and maintain (which we have).

Before we try to make our patches opensource-ready I just wanted to check — do we have a chance of merging some new options here?

mydeveloperday commented 2 months ago

I can't speak for all the maintainers, but generally we welcome new contributions, here is some advice I recently gave to another newcomer

Incase this is your first submission here is some guidance for clang-format commits: (this isn't an exhaustive list)

HazardyKnusperkeks commented 2 months ago

I'd say start with the options you need, one per PR, and we see where it will go.