-
Notifications
You must be signed in to change notification settings - Fork 339
[clang][DependencyScanning] Add API to expose module CompilerInvocation #10667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stable/20240723
Are you sure you want to change the base?
[clang][DependencyScanning] Add API to expose module CompilerInvocation #10667
Conversation
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
Outdated
Show resolved
Hide resolved
8ef15fc
to
217a752
Compare
Why don't we just expose the underlying |
Isn't this patch just did something similar? Just need an entry point to modified the underlying |
I find that post-processing value-type results is much clearer compared to callbacks. I also don't think the current implementation of the callback is sound due to the ordering I mentioned in my inlined comment. If that ordering is indeed necessary, I'd prefer to delegate that to the client rather than bake that into the Clang scanner API. |
Ordering is still not controlled by client if you expose internal compiler invocation because you cannot modify the invocation where you mentioned in the inline comment. You can only do it afterwards. But I am fine with adding that flexibility. |
Add a new API that returns underlying CompilerInvocation from ModuleDep. This allows clients to inspect and modify the state inside CompilerInvocation before turning that into build arguments.
217a752
to
cb2b900
Compare
@swift-ci please test |
Add a new API that returns underlying CompilerInvocation from ModuleDep. This allows clients to inspect and modify the state inside CompilerInvocation before turning that into build arguments.