[PATCH] D70351: [clang][WIP][clang-scan-deps] Add an experimental C API.

Michael Spencer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 13:12:53 PST 2019


Bigcheese marked an inline comment as done.
Bigcheese added inline comments.


================
Comment at: clang/include/clang-c/Dependencies.h:146
+ */
+typedef struct CXOpaqueDependencyScannerWorker *CXDependencyScannerWorker;
+
----------------
kousikk wrote:
> It would be simpler if the clients didn't have to worry about the worker?
> As far as a user of this lib is concerned, they need to create a shared cache, then call scanDeps() in some form with the shared cache and other inputs.
> 
> Can we hide the worker inside the implementation? So essentially we create a new worker for every invocation (that's assuming worker setup is cheap).
A lot of caching is per-worker. It would be pretty bad to spawn a new worker for every scan.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70351/new/

https://reviews.llvm.org/D70351





More information about the llvm-commits mailing list