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

[cling][NFC] Cleanup DeclUnloader #13534

Merged

Conversation

jalopezg-git
Copy link
Collaborator

This pull request moves helper functions to an anonymous namespace at the beginning of the TU. There are no functional changes in this PR; instead it makes the code more readable.

The follow-up PR, which is the important thing, fixes a number of issues in the handling of instantiation of member functions of templated classes, which should fix #10049 and all the issues mentioned there 🚀.

Changes or fixes:

  • Move helper functions to anonymous namespace at the beginning of the TU
  • Fix unmatched #pragma clang diagnostic push
  • Fix wrong indentation in some parts of the file

Checklist:

  • tested changes locally

@jalopezg-git jalopezg-git self-assigned this Aug 24, 2023
@jalopezg-git jalopezg-git changed the title [cling][NFC] Cleanup DeclUnloader [cling][NFC] Cleanup DeclUnloader Aug 24, 2023
Copy link
Member

@Axel-Naumann Axel-Naumann left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@github-actions
Copy link

Test Results

         9 files           9 suites   2d 0h 42m 34s ⏱️
  2 480 tests   2 478 ✔️ 0 💤 2
21 561 runs  21 559 ✔️ 0 💤 2

For more details on these failures, see this check.

Results for commit 43d498b.

@jalopezg-git jalopezg-git merged commit 94c5c9e into root-project:master Aug 24, 2023
8 of 13 checks passed
@jalopezg-git jalopezg-git deleted the cling-DeclUnloader-cleanup branch August 24, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cling] A failed compilation unloads more decls than strictly neccesary
2 participants