Open a folder with an SConstruct and CLion gets full code insight. SCons Workbench runs your project's own SCons to
write compile_commands.json (SCons 4's compilation_db tool, loaded from outside your build files, so nothing in
your repository changes) and loads it as a compilation database project.
Godot and GDExtension. Built and tested on the real Godot engine and godot-cpp-template: the generated database
matches the one from scons compiledb=yes command for command. Keep one profile per variant, such as
platform=linux target=editor and platform=linux target=template_release, and switch between them from the
toolbar. The Godot launcher builds your extension and opens the editor on your project, under the debugger if you
like.
Always in sync. Add a source file, edit an SConscript or Godot's SCsub and the database is regenerated in the
background and reloaded in place, without reopening the project.
Targets, build, run, debug. The SCons tool window lists default targets, aliases, programs and libraries from SCons' own dependency tree. Build, clean or rebuild any of them; compiler errors from gcc, clang and MSVC are links. Run or debug a program with the debugger of your CLion toolchain.
Premake. Open a folder with a premake5.lua. SCons Workbench runs your premake5 (the copy pinned in your
repository first, such as Tools/linux/premake5) and keeps one compilation database per configuration and
platform. Running premake5 compilecommands by hand gives one file once; here it stays in sync when you edit your
Lua scripts, your projects become build, run and debug targets, and Premake 5.0 betas without compilecommands
work too, through a dry run of the Makefiles Premake generates. Tested on premake-core and the Lumos engine.
qmake. Open a folder with a .pro file. qmake has no compilation-database export, so SCons Workbench runs
qmake in a build folder per profile (your source tree stays clean) and reads every compiler command from a dry run
of make. Profiles for Debug, Release or another Qt kit, subprojects as targets, and .pro/.pri editing with
highlighting and completion. Tested with Qt 5.15 and 6.11 and on QOwnNotes.
GN. Open a folder with a .gn file. GN writes the compilation database itself (gn gen --export-compile-commands); SCons Workbench keeps it in sync with your BUILD.gn files, turns each out dir
(out/Default, out/Release) into a profile without touching its args.gn, lists GN targets for build, run and
debug, and builds with ninja. Your repository's own gn (bin/gn, buildtools/) is used first. Tested on Skia.
build2. Open a build2 project. build2 writes the compilation database itself in a dry run
(b -n … config.cc.compiledb=-), so nothing is compiled to get code insight; your bdep configurations become
profiles and your programs and libraries become build, run and debug targets. Tested on libbutl, build2's own
utility library: one database entry for each of its 226 compile steps.
Ninja. Open a build.ninja that no other tool owns (hand-written, or from a script such as Ninja's own
configure.py). ninja -t compdb gives the database, kept in sync as the manifest changes, and Ninja's outputs
become targets. Tested on Ninja's own repository, which then builds itself.
Godot engine. Godot's engine source opens with editor dev, editor and template_release profiles and a
run configuration for each editor binary you build, the steps Godot's own CLion page has you do by hand.
Chromium. A Chromium checkout gets its database from Chromium's own generate_compdb.py, builds with
autoninja, and keeps the folders Chromium's CLion guide lists out of indexing (an editable list), so opening it
does not take hours.
Price, stated up front. Free forever: open as project, compile_commands.json on open and on demand, build,
clean and rebuild the whole project, SConstruct as Python, .pro editing. Paid plan: USD 49/year individual,
USD 99/year commercial, with JetBrains' free trial.