aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/run-clang-tools.py
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2020-08-22 14:56:15 +0000
committerMasahiro Yamada <[email protected]>2020-08-26 15:44:33 +0000
commitecca4fea1ede446e9ce3afa0b68b07fd1550f4f5 (patch)
treea555ab8b7787d73b76a438276fd941ad09b998eb /scripts/clang-tools/run-clang-tools.py
parentgen_compile_commands: move directory walk to a generator function (diff)
downloadkernel-ecca4fea1ede446e9ce3afa0b68b07fd1550f4f5.tar.gz
kernel-ecca4fea1ede446e9ce3afa0b68b07fd1550f4f5.zip
gen_compile_commands: support *.o, *.a, modules.order in positional argument
This script currently searches the specified directory for .cmd files. One drawback is it may contain stale .cmd files after you rebuild the kernel several times without 'make clean'. This commit supports *.o, *.a, and modules.order as positional parameters. If such files are given, they are parsed to collect associated .cmd files. I added a generator helper for each of them. This feature is useful to get the list of active .cmd files from the last build, and will be used by the next commit to wire up the compile_commands.json rule to the Makefile. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions