This reverts commit 57f3151a3144259f4e830fc43a1424e4c1f15985. LLDB was hitting an assert when compiling the `std` module. The `std` module was being pulled in because we use `#import <cstdio>` in the test to set a breakpoint on `puts`. That's redundant and to work around the crash we just remove that include. The underlying issue of compiling the `std` module still exists and I'll investigate that separately. The reason it started failing after the `ClangModulesDeclVendor` patch is that we would previously just fail to load the modulemap (and thus not load any of the modules). Now we do load the modulemap (and modules) when we prepare for parsing the expression.
13 lines
189 B
C++
13 lines
189 B
C++
#include "module1.h"
|
|
#include "module2.h"
|
|
|
|
int main() {
|
|
ClassInMod1 FromMod1;
|
|
ClassInMod2 FromMod2;
|
|
|
|
FromMod1.VecInMod1.Member = 137;
|
|
FromMod2.VecInMod2.Member = 42;
|
|
|
|
return 0;
|
|
}
|