Compdb
Soong can generate compdb files. This is intended for use with editing tools such as YouCompleteMe and other libclang based completers.
compdb file generation is enabled via environment variable:
One can make soong generate a symlink to the compdb file using an environment variable:
You can then trigger an empty build:
Note that if you build using mm or other limited makes with these environment variables set the compdb will only include files in included modules.
vscode基于clangd实现Android/Linux代码跳转