modm API documentation
|
lbuild module: modm:build:compilation_db
This module generates a Python script that generates a CompilationDB file, which allows you to import your project into a code editor like CLion or Qt Creator with working code completion and enhanced refactoring.
Since the CompilationDB requires absolute paths making it difficult to share with other users, this module instead generates a script that you can call whenever you need to generate a new compile_commands.json
file.
The script takes are argument the application folder or files that it should include. The search is recursive and looks only for source files while ignoring any generated files:
To generate the CompilationDB for debug mode, use the --debug
option:
When including this module together with the modm:build:scons
module, a new command is added to SCons, which wraps the above command line invocation.