You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having the compile_commands.json gives some chances of sophisticated static analysis such as using clang-tidy.
The compile_commands.json can easily be generated by modern build systems such as cmake and meson, but we use simple make build system so we do not have a way to generate the compile_commands.json.
I have prepared a simple script that generating compile_commands.json based on our build output.
It needs to be refactored more, but the simple script looks as follows.
Recent analysis tools benefits from
compile_commands.json
.Having the
compile_commands.json
gives some chances of sophisticated static analysis such as using clang-tidy.The
compile_commands.json
can easily be generated by modern build systems such as cmake and meson, but we use simplemake
build system so we do not have a way to generate thecompile_commands.json
.I have prepared a simple script that generating
compile_commands.json
based on our build output.It needs to be refactored more, but the simple script looks as follows.
The usage is as follows.
We can run
clang-tidy
as follows.The text was updated successfully, but these errors were encountered: