Open
Description
We should consider making this package generate compile_commands.json
files.
https://clang.llvm.org/docs/ClangCommandLineReference.html#dependency-file-generation
I think we'd probably want to do this as a side effect of the hook, and only if the sources are not in the pub cache.
We need to do this as a side effect of the hook due to the following:
- The compiler can be passed in by the SDK, and
- Packages depended on can pass in include directories or libraries to be linked via metadata.
Hence, it is not enough to simply have a CBuilder
and run it from a tool/generate_compile_commands_json.dart
.