aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/run-clang-tools.py
diff options
context:
space:
mode:
authorMasahiro Yamada <[email protected]>2020-08-22 14:56:10 +0000
committerMasahiro Yamada <[email protected]>2020-08-26 15:44:33 +0000
commitea6cedc5b8a4e666da41f1173ea19970fa60683f (patch)
tree9ebf8342cb3cb2777c42f59b99210d9afb80147b /scripts/clang-tools/run-clang-tools.py
parentgen_compile_commands: parse only the first line of .*.cmd files (diff)
downloadkernel-ea6cedc5b8a4e666da41f1173ea19970fa60683f.tar.gz
kernel-ea6cedc5b8a4e666da41f1173ea19970fa60683f.zip
gen_compile_commands: use choices for --log_levels option
Use 'choices' to check if the given parameter is valid. I also simplified the help message because, with 'choices', --help shows the list of valid parameters: --log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL} I started the help message with a lower case, "the level of log ..." in order to be consistent with the -h option: -h, --help show this help message and exit The message "show this help ..." comes from the ArgumentParser library code, and I do not know how to change it. So, I changed our code. 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