Small update on this:
- I just found that there is
-NoExecCodeGenActions
flag for GenerateClangDatabase which fixes the issues with super long execution times of this mode. For context, see UBT GenerateClangDatabase is NOT incremental and recreates whole compile_commands.json each time - I also found there is a wrapper for GenerateClangDatabase inside of
ushell
and its code is located here: UnrealEngine/Engine/Extras/ushell/channels/unreal/core/cmds/clangdb.py - this command is invoked by.build misc clangdb
but I haven’t tested it yet. - adding
-allmodules
flag generates a bit biggercompile_commands.json
. Not sure if this fixes/changes anything. I haven’t noticed any difference on my side yet beside way longer execution times (so I don’t recommend using it).