@@ -19,20 +19,21 @@ for each translation unit.
1919
2020load ("@bazel_tools//tools/build_defs/cc:action_names.bzl" , "ACTION_NAMES" )
2121load ("@bazel_tools//tools/cpp:toolchain_utils.bzl" , "find_cpp_toolchain" )
22+ load ("@default_codechecker_tools//:defs.bzl" , "BAZEL_VERSION" )
2223load ("codechecker_config.bzl" , "get_config_file" )
24+ load (
25+ "common.bzl" ,
26+ "python_interpreter_tool" ,
27+ "python_path" ,
28+ "python_toolchain_type" ,
29+ )
2330load (
2431 "compile_commands.bzl" ,
2532 "SourceFilesInfo" ,
2633 "compile_commands_aspect" ,
2734 "compile_commands_impl" ,
2835 "platforms_transition" ,
2936)
30- load ("common.bzl" ,
31- "python_path" ,
32- "python_toolchain_type" ,
33- "python_interpreter_tool" ,
34- )
35- load ("@default_codechecker_tools//:defs.bzl" , "BAZEL_VERSION" )
3637
3738def _run_code_checker (
3839 ctx ,
@@ -63,7 +64,7 @@ def _run_code_checker(
6364 ctx .outputs .per_file_script ,
6465 compile_commands_json ,
6566 config_file ,
66- ] + sources_and_headers
67+ ] + sources_and_headers
6768 else :
6869 # NOTE: we collect only headers, so CTU may not work!
6970 headers = depset (transitive = target [SourceFilesInfo ].headers .to_list ())
@@ -73,7 +74,9 @@ def _run_code_checker(
7374 compile_commands_json ,
7475 config_file ,
7576 src ,
76- ], transitive = [headers ])
77+ ],
78+ transitive = [headers ],
79+ )
7780
7881 outputs = [clang_tidy_plist , clangsa_plist , codechecker_log ]
7982
0 commit comments