Skip to content

[clang-tidy][misc-include-cleaner]Avoid to insert same include header multiple times #65431

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

Merged
merged 3 commits into from
Sep 6, 2023
Merged

[clang-tidy][misc-include-cleaner]Avoid to insert same include header multiple times #65431

merged 3 commits into from
Sep 6, 2023

Conversation

HerrCai0907
Copy link
Contributor

HeaderIncludes won't update ExistingIncludes during inserting.
We need to manage it in tidy check.

Fixed: #65285

@danix800
Copy link
Member

danix800 commented Sep 6, 2023

Please refer to https://reviews.llvm.org/D159263 about areDiagsSelfContained.

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

@HerrCai0907 HerrCai0907 requested a review from danix800 September 6, 2023 05:54
Copy link
Member

@kadircet kadircet left a comment

Choose a reason for hiding this comment

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

thanks!

@HerrCai0907 HerrCai0907 merged commit b0831c3 into llvm:main Sep 6, 2023
@HerrCai0907 HerrCai0907 deleted the fix/clang-tidy/misc-include-cleaner branch September 6, 2023 09:37
avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
… multiple times (llvm#65431)

`HeaderIncludes` won't update `ExistingIncludes` during inserting.
We need to manage it in tidy check.

Fixed: llvm#65285
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.

[clang-tidy] misc-include-cleaner: redundant insertion on different symbols from same header
4 participants