diff --git a/dsymbol b/dsymbol index 1c5579d..e83afca 160000 --- a/dsymbol +++ b/dsymbol @@ -1 +1 @@ -Subproject commit 1c5579db6c1d88a097d46f5bee5ae1e2cf8fff02 +Subproject commit e83afca7cf2cac48084ba294926d4dd24945dc1a diff --git a/makefile b/makefile index 9f271b7..f3112c4 100644 --- a/makefile +++ b/makefile @@ -30,7 +30,7 @@ githash: git log -1 --format="%H" > githash.txt debug: - ${DC} -w -g -ofdsc ${VERSIONS} ${DEBUG_VERSIONS} ${INCLUDE_PATHS} ${SRC} + ${DC} -w -g -J. -ofdsc ${VERSIONS} ${DEBUG_VERSIONS} ${INCLUDE_PATHS} ${SRC} dmdbuild: githash $(SRC) mkdir -p bin diff --git a/src/analysis/helpers.d b/src/analysis/helpers.d index 7ffbd2d..7368d8a 100644 --- a/src/analysis/helpers.d +++ b/src/analysis/helpers.d @@ -59,7 +59,7 @@ void assertAnalyzerWarnings(string code, const StaticAnalysisConfig config, stri ParseAllocator p = new ParseAllocator; const(Module) m = parseModule(file, cast(ubyte[]) code, p, cache, false); - ModuleCache moduleCache; + auto moduleCache = ModuleCache(p); // Run the code and get any warnings MessageSet rawWarnings = analyze("test", m, config, moduleCache); diff --git a/src/main.d b/src/main.d index 8a0adec..ddc1f64 100644 --- a/src/main.d +++ b/src/main.d @@ -118,7 +118,7 @@ int main(string[] args) const(string[]) absImportPaths = importPaths.map!( a => a.absolutePath().buildNormalizedPath()).array(); - ModuleCache moduleCache; + auto moduleCache = ModuleCache(new dsymbol.modulecache.ASTAllocator); if (absImportPaths.length) moduleCache.addImportPaths(absImportPaths);