1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 11:52:44 +01:00
RIOT/dist/tools/compile_commands
Marian Buschsieweke a5f52cbbb7
dist/tools/compile_commands: fix error handling
detect_includes_and_version_gcc() previously only detected the includes,
but has been extended to also return the version. This is done by
returning a tuple, with the first item being the list of include paths,
and the second being the version. In the error handling the script still
returns only an empty list of includes, but not an empty version. This
fixes the issue.
2022-06-14 12:32:22 +02:00
..
compile_commands.py dist/tools/compile_commands: fix error handling 2022-06-14 12:32:22 +02:00
README.md build system: add new compile-commands make target 2021-04-14 14:51:46 +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.