summaryrefslogtreecommitdiffstats
path: root/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
diff options
context:
space:
mode:
authorMichael Spencer <bigcheesegs@gmail.com>2019-10-10 14:40:17 -0700
committerMichael Spencer <michael_spencer@apple.com>2019-10-24 16:19:11 -0700
commit9ab6d8236b176bf9dd43741f4d874a8afebed99c (patch)
tree5898f54c9286c0f95870c9a4c83803a78155dc57 /clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
parent9671d1dc1764701824913ecca2b76ab17c33c29e (diff)
downloadbcm5719-llvm-9ab6d8236b176bf9dd43741f4d874a8afebed99c.tar.gz
bcm5719-llvm-9ab6d8236b176bf9dd43741f4d874a8afebed99c.zip
[clang-scan-deps] Add basic support for modules.
This fixes two issues that prevent simple uses of modules from working. * We would previously minimize _every_ file opened by clang, even module maps and module pcm files. Now we only minimize files with known extensions. It would be better if we knew which files clang intended to open as a source file, but this works for now. * We previously cached every lookup, even failed lookups. This is a problem because clang stats the module cache directory before building a module and creating that directory. If we cache that failure then the subsequent pcm load doesn't see the module cache and fails. Overall this still leaves us building minmized modules on disk during scanning. This will need to be improved eventually for performance, but this is correct, and works for now. Differential Revision: https://reviews.llvm.org/D68835
Diffstat (limited to 'clang/lib/Tooling/InterpolatingCompilationDatabase.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud