Skip to content

Conversation

@jkoritzinsky
Copy link
Member

Fixes #65177

Sorted includes is from the auto-formatter.

@ghost
Copy link

ghost commented Feb 11, 2022

Tagging subscribers to this area: @dotnet/interop-contrib
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #65177

Sorted includes is from the auto-formatter.

Author: jkoritzinsky
Assignees: -
Labels:

area-System.Runtime.InteropServices, runtime-mono

Milestone: -

@AaronRobinsonMSFT
Copy link
Member

Sorted includes is from the auto-formatter.

I would turn this off then. Reordering includes is fraught and can destabilize things.

@jkoritzinsky
Copy link
Member Author

jkoritzinsky commented Feb 11, 2022

Mono should change their formatter configuration if they don't want the includes sorted. Otherwise there's no way to enforce formatting.

#include <errno.h>
#include <mono/utils/mono-error-internals.h>
#include <mono/utils/mono-threads-coop.h>
#include <mono/utils/mono-threads.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: slightly prefer if we could drop unrelated reformatting.

@lambdageek
Copy link
Member

Mono should change their formatter configuration if they don't want the includes sorted. Otherwise there's no way to enforce formatting.

How do I do that? I'm an .editorconfig noob

@jkoritzinsky
Copy link
Member Author

Removed the formatting changes for now.

I think that we'd need to switch Mono to using .clang-format instead of .editorconfig to get the options needed.

@jkoritzinsky
Copy link
Member Author

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkoritzinsky jkoritzinsky merged commit e04d750 into dotnet:main Feb 12, 2022
@jkoritzinsky jkoritzinsky deleted the mono-il-fix branch February 12, 2022 06:42
@ghost ghost locked as resolved and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

4 participants