1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-29 00:11:16 +01:00
RIOT/dist/tools/compile_commands
Marian Buschsieweke e8edd952a4
dist/tools/compile_commands: add awareness for -fanalyzer
Now that static analysis is supported (for some modules), we need to
add awareness for that flag to compile_commands.py: As the flag is
not supported by LLVM, we strip it off in clangd mode  (e.g. for
`make compile-commands`).
2025-04-18 09:36:31 +02:00
..

Generation of compile_commands.json

This tool can be used to generate compile_commands.json e.g. for code completion and linting in IDEs. It relies on the build system providing the compilation details in bin dir. This tools is best invoked indirectly via make compile-commands inside the application, which will first generate the required files in the bin directory and then invoke this tool. For more details, check the getting started page in the RIOT API documentation.