diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-02-01 13:35:11 -0800 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-02-01 13:46:26 -0800 |
commit | ba556660fe52a558c34556866aba4a0bb8bbbd23 (patch) | |
tree | c92288e940a8d9293fc06c485a614431204cd17f /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e60fcfd6e568d1471e40e6e8a14070ef126cdf4a (diff) | |
download | llvm-ba556660fe52a558c34556866aba4a0bb8bbbd23.zip llvm-ba556660fe52a558c34556866aba4a0bb8bbbd23.tar.gz llvm-ba556660fe52a558c34556866aba4a0bb8bbbd23.tar.bz2 |
[clang][deps] NFC: Split out the module-based API from the TU-based API
For users of the C++ API, the return type of `getFullDependencies` doesn't make sense when asking for dependencies of a module. In the returned `FullDependenciesResult` instance, only `DiscoveredModules` is useful (the graph of modular dependecies). The `FullDeps` member is trying to describe a translation unit it was never given. Its command line also refers to a file in the in-memory VFS we create in the scanner, leaking the implementation detail.
This patch splits the API and improves layering and naming of the return types.
Depends on D140175.
Reviewed By: artemcm
Differential Revision: https://reviews.llvm.org/D140176
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions