Version 2 (modified by Martin Robinson, 13 months ago) (diff)



  1. Create a symlink in the root of your WebKit source directory:
    $ ln -s WebKitBuild/GTK/Release/compile_commands.json compile_commands.json
    Replacing GTK with WPE if you are commonly building the WPE port.
  1. In your IDE set the clangd path to <WebKitSourceDirectory>/Tools/flatpak/webkit-clangd.
  2. Make sure that the clangd arguments include the --enable-config and the --gtk or --wpe options.

Vim Example

For instance, when configuring vim's coc via :CocLocalConfig you write:

    "clangd.arguments": [
    "clangd.path": "/home/user/WebKit/Tools/flatpak/webkit-clangd"