Skip to content
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 more vertical spacing to KLib dumps #225

Merged
merged 7 commits into from
Jun 11, 2024

Conversation

fzhinkin
Copy link
Collaborator

@fzhinkin fzhinkin commented May 6, 2024

Additional newlines should improve dump's readability and also improve diffs generated by the GH.

This change builds on #197, which groups declarations based on their kind.

Now, an extra newline will always be inserted before:

  • // Targets: meta-header,
  • a new class/interface/object/enum-class declaration
  • in-between two declarations having different kinds (for example, between a group of vars and funs).

Closes #196

@fzhinkin fzhinkin linked an issue May 6, 2024 that may be closed by this pull request
@fzhinkin fzhinkin requested a review from ilya-g May 6, 2024 09:49
@fzhinkin fzhinkin marked this pull request as ready for review May 6, 2024 09:49
@fzhinkin fzhinkin force-pushed the 197-consider-decl-kind-when-sorting-dump branch from a9a5b5a to 41770eb Compare May 27, 2024 08:30
@fzhinkin fzhinkin force-pushed the 196-add-more-vertical-spacing branch 2 times, most recently from fa9bbe7 to e8b4f6c Compare May 27, 2024 14:36
@fzhinkin fzhinkin changed the base branch from 197-consider-decl-kind-when-sorting-dump to develop June 10, 2024 14:48
@fzhinkin fzhinkin force-pushed the 196-add-more-vertical-spacing branch from e8b4f6c to 512b45b Compare June 10, 2024 14:54
@fzhinkin fzhinkin merged commit 3477c15 into develop Jun 11, 2024
1 check passed
ALikhachev added a commit to Kotlin/kotlinx.serialization that referenced this pull request Jul 23, 2024
This is required to ensure compatibility of the build with Kotlin 2.1+ after resolving https://youtrack.jetbrains.com/issue/KT-61706
Adds kotlinx-serialization-json-tests to ignored projects: Kotlin/binary-compatibility-validator#243
Reorders entries in dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
The entries are only reordered, but contain no significant changes.
ALikhachev added a commit to Kotlin/kotlinx-benchmark that referenced this pull request Jul 23, 2024
Also, update the dump to reflect the actual state of the Gradle plugin.
Reorders entries in the dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
Removes internal constants from the dump: Kotlin/binary-compatibility-validator#90
Fixes #248
sandwwraith pushed a commit to Kotlin/kotlinx.serialization that referenced this pull request Jul 23, 2024
This is required to ensure compatibility of the build with Kotlin 2.1+ after resolving https://youtrack.jetbrains.com/issue/KT-61706
Adds kotlinx-serialization-json-tests to ignored projects: Kotlin/binary-compatibility-validator#243
Reorders entries in dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
The entries are only reordered, but contain no significant changes.
sandwwraith pushed a commit to Kotlin/kotlinx.serialization that referenced this pull request Aug 1, 2024
This is required to ensure compatibility of the build with Kotlin 2.1+ after resolving https://youtrack.jetbrains.com/issue/KT-61706
Adds kotlinx-serialization-json-tests to ignored projects: Kotlin/binary-compatibility-validator#243
Reorders entries in dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
The entries are only reordered, but contain no significant changes.

Cherry-picked from 46f406d
sandwwraith added a commit to Kotlin/kotlinx.serialization that referenced this pull request Aug 5, 2024
This is required to ensure compatibility of the build with Kotlin 2.1+ after resolving https://youtrack.jetbrains.com/issue/KT-61706
Adds kotlinx-serialization-json-tests to ignored projects: Kotlin/binary-compatibility-validator#243
Reorders entries in dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
The entries are only reordered, but contain no significant changes.

Cherry-picked from 46f406d

Co-authored-by: Alexander Likhachev <[email protected]>
woainikk pushed a commit to Kotlin/kotlinx.serialization that referenced this pull request Aug 7, 2024
This is required to ensure compatibility of the build with Kotlin 2.1+ after resolving https://youtrack.jetbrains.com/issue/KT-61706
Adds kotlinx-serialization-json-tests to ignored projects: Kotlin/binary-compatibility-validator#243
Reorders entries in dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
The entries are only reordered, but contain no significant changes.
woainikk added a commit to Kotlin/kotlinx.serialization that referenced this pull request Aug 7, 2024
This is required to ensure compatibility of the build with Kotlin 2.1+ after resolving https://youtrack.jetbrains.com/issue/KT-61706
Adds kotlinx-serialization-json-tests to ignored projects: Kotlin/binary-compatibility-validator#243
Reorders entries in dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
The entries are only reordered, but contain no significant changes.
qurbonzoda pushed a commit to Kotlin/kotlinx-benchmark that referenced this pull request Aug 15, 2024
Also, update the dump to reflect the actual state of the Gradle plugin.
Reorders entries in the dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
Removes internal constants from the dump: Kotlin/binary-compatibility-validator#90
Fixes #248
woainikk pushed a commit to Kotlin/kotlinx.serialization that referenced this pull request Aug 26, 2024
This is required to ensure compatibility of the build with Kotlin 2.1+ after resolving https://youtrack.jetbrains.com/issue/KT-61706
Adds kotlinx-serialization-json-tests to ignored projects: Kotlin/binary-compatibility-validator#243
Reorders entries in dumps: Kotlin/binary-compatibility-validator#225, Kotlin/binary-compatibility-validator#196
The entries are only reordered, but contain no significant changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Klib .api files could use some vertical spacing
2 participants