Adding new field into the scanning service and propagating it down into the worker, action or collector requires a lot of boilerplate and causes conflicts in our downstream repo. Fix this by passing around the whole service object.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/Tooling/DependencyScanning/DependencyScanningService.h | ||
---|---|---|
69 | I don't think it adds much, since the members are private and only ever accessed in functions already marked const. I'm fine with keeping the const here if you think there's value in it. |
clang/include/clang/Tooling/DependencyScanning/DependencyScanningService.h | ||
---|---|---|
69 | It's fine, just wanted to check I didn't misunderstand this. |
Comment Actions
Any other feedback?
clang/include/clang/Tooling/DependencyScanning/ModuleDepCollector.h | ||
---|---|---|
19 | Good point, I'll do that before committing. |
Why drop const?