1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/compile_commands
chrysn 4fb9f46e62 tools/compile_commands: use -Wno-unknown-warning-option
... instead of manual filtering

Some -Wwarning-type flags were removed because in combination with
-Werror they caused clang to fail when the warning type was unknown.
Rather than enumerating them (a manual process with the extra risk of
leaving warnings disabled longer than necessary), this adds
`-Wno-unknown-arning-option` which disables the warnings (that are
becoming erors through -Werror) raised when a warning's name is unknown.
2022-01-27 09:10:49 +01:00
..
compile_commands.py tools/compile_commands: use -Wno-unknown-warning-option 2022-01-27 09:10:49 +01: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.