-
Notifications
You must be signed in to change notification settings - Fork 70
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
winapi: Add clang-format file #670
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is this option? |
Pushed a new commit with fixes. New diff looks like Ill hightlight this oddity. Doesnt handle the short hand if/else. Could refactor or a |
I added some comments on 2a2392a and only realized afterwards that thrimbor made some of those arguments already (and that it wasn't the latest revision). |
3e8a848
to
97f973d
Compare
In my honest opinion, anything that is grouped together for list of |
Pushed new commit to make #defines line up if in same group. See top comment for latest diff |
LGTM. Some minor notes:
|
Agreed, I'll merge now. |
Add a clang-format file specifcally to the winapi folder. The formatting across the
lib/
varies alot with formatting so this atleast targets this one folder that has bitten me a few times with formatting issues., although this also works pretty well for thenxdk/
folderThis was based on the bare minimum custom options I could find whilst matching the existing format as best as I could.
This results in the following diff when ran against the winapi folder
2a2392acomments1f22f6eecomments21a2ab65comments3Ryzee119@0b31421
The majority of these diffs look like genuine formatting issues.
Unfortuntely it does not handle our calling conventions __cdecl or __stdcall and removes a space when it shouldn't. I think it is related to this issue llvm/llvm-project#34171 and nothing I could do seemed to bypass it.
Where there was a mix of formatting I went with the majority (ie
extern "c" {
vsextern "c" \n {
Also dont know if we want a
ColumnLimit
?