-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add style formatter #487
Add style formatter #487
Conversation
a07de06
to
2e1648c
Compare
- LLVM style - IndentWidth: 4 - ColumnLimit: 0
2e1648c
to
63adada
Compare
I added the I have tuned some settings for clang-format :
I'm not a fan of preprocessor indentation, the result is a bit strange in some cases. It's possible with the option Note : to fill the gitattributes, I used the command below to view all the extensions currently used. git ls-tree -r HEAD --name-only | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u |
Thank you very much for the proposals, Sazerac4! I really like them. Some questions:
|
This is a text file format but i guess yes. Because we don't want to see text diff on a file that is which is basically an image.
Yes, why not.
The perpetual debate :D . Developers argue between choosing tabs or spaces. I will commit the changes. |
Hello,
I'm trying the "trice" library for a project and I found some fixes.
I have a code formatter when I make changes to my application but I would like to keep the style of the library when modifying.
I couldn't find a code formatter, is there a tool used ?
If not, I propose this pull-request to provide one as an example by using clang-format.
I also added a
.gitattributes
file to avoid problems with "diff" and end of lines. Here is an article that presents the problem.The style of the example does not correspond to the original one. Configurations are necessary for this to be the case. Tags can be placed to prevent certain macros from being formatted