================ @@ -1441,6 +1441,10 @@ void HeaderSearch::MarkFileModuleHeader(FileEntryRef FE, HFI.isCompilingModuleHeader |= isCompilingModuleHeader; } +void HeaderSearch::EnteredTextualFile(FileEntryRef File) { + getFileInfo(File).isCompilingModuleHeader = true; ---------------- jansvoboda11 wrote:
The documentation for `isCompilingModuleHeader` says: ``` /// Whether this header is part of the module that we are building, even if it /// doesn't build with the module. i.e. this will include `excluded` and /// `textual` headers as well as normal headers. ``` To me this means this should set only for headers that semantically belong to the current module, not headers that happen to be compiled with it due to being textual. https://github.com/llvm/llvm-project/pull/89729 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits