[include-cleaner] Don't apply the PreferredHeader hint for standard headers.
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 13 Jun 2023 11:42:36 +0000 (13:42 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 13 Jun 2023 16:57:45 +0000 (18:57 +0200)
commit48967c6e5504c7bcb3f7a55fc3894760c62cef53
treea49449803ef1eea4a97d64b5e4f7535e170e5ce5
parent445ec58f5fe304112db8c1105ba6814a7aea2161
[include-cleaner] Don't apply the PreferredHeader hint for standard headers.

Fixes https://github.com/llvm/llvm-project/issues/62635

Differential Revision: https://reviews.llvm.org/D152801
clang-tools-extra/include-cleaner/lib/FindHeaders.cpp
clang-tools-extra/include-cleaner/unittests/FindHeadersTest.cpp