I managed to get clangd to work for code completion using the following command: ./Tools/Scripts/build-webkit --jsc-only --cmakeargs="-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DENABLE_UNIFIED_BUILDS=OFF" && compdb -p WebKitBuild/Release/ list > compile_commands.json This patch fixes the build for non-unified sources, and adds some extra clangd files to .gitignore.
Created attachment 394092 [details] Patch
Comment on attachment 394092 [details] Patch r=me
Committed r258774: <https://trac.webkit.org/changeset/258774> All reviewed patches have been landed. Closing bug and clearing flags on attachment 394092 [details].
<rdar://problem/60696207>