Hi,
Could someone help me understand what is wrong with the enclosed build module example? (It’s kind of in the form of a test, but ignore the comment for running the test, as it’s just a source file here.)
I’m trying to gear up to add a fixit message for undefined types which can be found in a module, but I can’t get this simple scenario to work. The idea is that if I later remove the #include, I’ll get an error on the undefined type, which nonetheless could be found in a module, allowing me to add a fixit.
In looking at other modules tests, it seems that if I put the module.map file in a subdirectory and use a -I option, clang can find the module map there and load it, right?
In looking at this in a debugger, in the HandleIncludeDirective function, the lookupFile call at line 1452 loads the module map. But then at line 1655 a loadModule call loads the module map again, but fails.
To reproduce, just run the makefile, which produces:
jtmodules.zip (1.12 KB)