[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-14 Thread Haojian Wu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG504aa8ae941e: [include-cleaner] Better support ambiguous std symbols (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-14 Thread Haojian Wu via Phabricator via cfe-commits
hokein marked an inline comment as done. hokein added a comment. Thanks for the review! Comment at: clang-tools-extra/include-cleaner/lib/FindHeaders.cpp:85 +Hints isPublicHeader(const FileEntry *FE, const PragmaIncludes *PI) { + return (PI->isPrivate(FE) || !PI->isSelfConta

[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-14 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 497233. hokein marked 2 inline comments as done. hokein added a comment. handle the case where PI is null. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143906/new/ https://reviews.llvm.org/D143906 Files: cla

[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-14 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land. thanks! Comment at: clang-tools-extra/include-cleaner/lib/FindHeaders.cpp:85 +Hints isPublicHeader(const FileEntry *FE, const PragmaIncludes *PI) { + return (PI->isPri

[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/include-cleaner/lib/FindHeaders.cpp:174 const PragmaIncludes *PI) { + if (auto Headers = specialStandardSymbols(S); !Headers.empty()) +return Headers; kad

[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 497110. hokein marked 3 inline comments as done. hokein added a comment. address comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143906/new/ https://reviews.llvm.org/D143906 Files: clang-tools-extra/in

[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-13 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/include-cleaner/lib/FindHeaders.cpp:104 + } + if (FName == "remove") { +if (FD->getNumParams() == 1) nit: `else if` Comment at: clang-tools-extra/include-cleaner/lib/FindHeader

[PATCH] D143906: [include-cleaner] Better support ambiguous std symbols

2023-02-13 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: kadircet. Herald added a project: All. hokein requested review of this revision. Herald added a project: clang-tools-extra. By special-casing them at the moment. The tooling stdlib lib doesn't support these symbols (most important one is std::