[clang-tools-extra] Use resolved path when filtering in IncludeInserter (PR #148371)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 5 12:02:41 PDT 2025


================
@@ -306,14 +306,14 @@ IncludeInserter::calculateIncludePath(const HeaderFile &InsertedHeader,
     return std::nullopt;
   bool IsAngled = false;
   for (auto &Filter : AngledHeaders) {
-    if (Filter(Suggested)) {
+    if (Filter(InsertedHeader.File)) {
----------------
Harald-R wrote:

Thanks @HighCommander4! Made the changes.

https://github.com/llvm/llvm-project/pull/148371


More information about the cfe-commits mailing list