-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8352645: Add tool support to check order of includes #24247
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
Closed
Closed
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a76d4f9
do not reorder certain includes
dougxc d4d367a
added tool to sort includes
dougxc 6277947
sort includes in subset of HotSpot sources and added a test to keep t…
dougxc 18e2a1d
drop extra blank lines and preserve rule for first include in .inline…
dougxc 807374e
update style guide with advice on how to label includes that should n…
dougxc da06409
removed extra blank lines
dougxc 632ed38
moved some logic out of SortIncludes into TestIncludesAreSorted
dougxc cada0df
allow spaces between `#` and `include`
dougxc 3819f86
remove trailing spaces
dougxc 93770e7
moved test/hotspot/jtreg/sources into tier1_common
dougxc c93e664
moved error message into UnsortedIncludesException
dougxc 921e325
convert Windows path to Unix path
dougxc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't understand this change. How does this end up doing anything different than before?
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.
This makes
sourcesbe tested in GHA:jdk/.github/workflows/test.yml
Line 88 in a1ab1d8
An alternative would be to add a separate GHA jobs just for
sources:Given how small
sourcesis (currently only 1 test), it felt like it should just be folded into common.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.
Ah, the workflows definition is what I was having trouble finding. I
understand now. In light of that, the proposed change to the groups looks
fine.