jansvoboda11 updated this revision to Diff 415381. jansvoboda11 added a comment.
Undo unrelated changes Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121295/new/ https://reviews.llvm.org/D121295 Files: clang/lib/Lex/HeaderSearch.cpp clang/test/Preprocessor/search-path-usage.m Index: clang/test/Preprocessor/search-path-usage.m =================================================================== --- clang/test/Preprocessor/search-path-usage.m +++ clang/test/Preprocessor/search-path-usage.m @@ -129,7 +129,7 @@ #endif #endif -// Check that search paths with module maps are reported. +// Check that search paths with module maps are NOT reported. // // RUN: mkdir %t/modulemap_abs // RUN: sed "s|DIR|%/S/Inputs/search-path-usage|g" \ @@ -142,5 +142,5 @@ // RUN: -DMODMAP_ABS -verify #ifdef MODMAP_ABS @import b; // \ -// expected-remark-re {{search path used: '{{.*}}/modulemap_abs'}} +// expected-no-diagnostics #endif Index: clang/lib/Lex/HeaderSearch.cpp =================================================================== --- clang/lib/Lex/HeaderSearch.cpp +++ clang/lib/Lex/HeaderSearch.cpp @@ -365,9 +365,6 @@ break; } - if (Module) - noteLookupUsage(It.Idx, ImportLoc); - return Module; }
Index: clang/test/Preprocessor/search-path-usage.m =================================================================== --- clang/test/Preprocessor/search-path-usage.m +++ clang/test/Preprocessor/search-path-usage.m @@ -129,7 +129,7 @@ #endif #endif -// Check that search paths with module maps are reported. +// Check that search paths with module maps are NOT reported. // // RUN: mkdir %t/modulemap_abs // RUN: sed "s|DIR|%/S/Inputs/search-path-usage|g" \ @@ -142,5 +142,5 @@ // RUN: -DMODMAP_ABS -verify #ifdef MODMAP_ABS @import b; // \ -// expected-remark-re {{search path used: '{{.*}}/modulemap_abs'}} +// expected-no-diagnostics #endif Index: clang/lib/Lex/HeaderSearch.cpp =================================================================== --- clang/lib/Lex/HeaderSearch.cpp +++ clang/lib/Lex/HeaderSearch.cpp @@ -365,9 +365,6 @@ break; } - if (Module) - noteLookupUsage(It.Idx, ImportLoc); - return Module; }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits