================
@@ -1441,6 +1441,10 @@ void HeaderSearch::MarkFileModuleHeader(FileEntryRef FE,
   HFI.isCompilingModuleHeader |= isCompilingModuleHeader;
 }
 
+void HeaderSearch::EnteredTextualFile(FileEntryRef File) {
+  getFileInfo(File).isCompilingModuleHeader = true;
----------------
sam-mccall wrote:

Oops, I meant to alter that description in this patch, it seems that change got 
lost.

At this point, `isCompilingModuleHeader` is used only for this "is affecting" 
check, and for a heuristic related to translating `#include` into `#import`. 
The latter only cares about modular headers, so it seems reasonable to change 
the semantics for textual headers to something more useful. (But I do need to 
be careful we're only setting this for textual modular headers).

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

Reply via email to