diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-22 23:56:13 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-08-27 00:44:33 +0900 |
commit | 6fca36f1d82ad5bc385187f0aed93bbaefaa2172 (patch) | |
tree | 91428edf9cfde9f5f51a2566f47636357a1c7640 /scripts/clang-tools/run-clang-tools.py | |
parent | 0a7d376d04a3c84b503f1efecde8f9d9a7430269 (diff) |
gen_compile_commands: make -o option independent of -d option
Change the -o option independent of the -d option, which is I think
clearer behavior. Some people may like to use -d to specify a separate
output directory, but still output the compile_commands.py in the
source directory (unless the source tree is read-only) because it is
the default location Clang Tools search for the compilation database.
Also, move the default parameter to the default= argument of the
.add_argument().
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions