[clang] [C23] Correctly handle missing embed with -MG (PR #166188)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 3 09:48:21 PST 2025


================
@@ -75,6 +75,17 @@ struct DepCollectorPPCallbacks : public PPCallbacks {
                                     /*IsMissing*/ false);
   }
 
+  bool EmbedFileNotFound(StringRef FileName) override {
+    DepCollector.maybeAddDependency(
+        llvm::sys::path::remove_leading_dotslash(FileName),
+        /*FromModule*/ false,
----------------
tbaederr wrote:

```suggestion
        /*FromModule=*/ false,
```
Same with the others.

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


More information about the cfe-commits mailing list