Skip to content

[clang-apply-replacements] Deduplicate Implementation of collectReplacementsFromDirectory (NFC) #78630

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

Conversation

unterumarmung
Copy link
Contributor

  • Convert collectReplacementsFromDirectory into a function template.
  • Employ explicit specialization to maintain implementation in the source file.
  • Utilize the function template in the source file to eliminate code duplication.
  • Update the documentation for the function.

@unterumarmung
Copy link
Contributor Author

unterumarmung commented Jan 18, 2024

I honestly don't know who should review/approve this, but hopefully the change is not complicated.

Copy link
Member

@PiotrZSL PiotrZSL left a comment

Choose a reason for hiding this comment

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

LGTM.

@Endilll Endilll removed their request for review January 18, 2024 23:02
…acementsFromDirectory` (NFC)

* Convert `collectReplacementsFromDirectory` into a function template.
* Employ explicit specialization to maintain implementation in the source file.
* Utilize the function template in the source file to eliminate code duplication.
* Update the documentation for the function.
@unterumarmung unterumarmung force-pushed the clang-apply-replacements-remove-code-dublication branch from cc4591e to 1951bad Compare January 19, 2024 07:33
Copy link
Contributor

@HerrCai0907 HerrCai0907 left a comment

Choose a reason for hiding this comment

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

LGTM

@unterumarmung
Copy link
Contributor Author

The Windows build in the CI is stuck. The change is pretty trivial and doesn't use any features that cannot be found in C++98. So, we can skip the Windows check.

@unterumarmung unterumarmung merged commit 24e5229 into llvm:main Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants