File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,19 @@ def _run_tidy(
10
10
flags ,
11
11
compilation_contexts ,
12
12
infile ,
13
- discriminator ):
13
+ discriminator ,
14
+ additional_inputs ):
14
15
cc_toolchain = find_cpp_toolchain (ctx )
16
+ direct_inputs = (
17
+ [infile , config ] +
18
+ additional_deps .files .to_list () +
19
+ ([exe .files_to_run .executable ] if exe .files_to_run .executable else [])
20
+ )
21
+ for additional_input in additional_inputs :
22
+ direct_inputs .extend (additional_input .files .to_list ())
23
+
15
24
inputs = depset (
16
- direct = (
17
- [infile , config ] +
18
- additional_deps .files .to_list () +
19
- ([exe .files_to_run .executable ] if exe .files_to_run .executable else [])
20
- ),
25
+ direct = direct_inputs ,
21
26
transitive =
22
27
[compilation_context .headers for compilation_context in compilation_contexts ] +
23
28
[cc_toolchain .all_files ],
@@ -226,6 +231,7 @@ def _clang_tidy_aspect_impl(target, ctx):
226
231
compilation_contexts ,
227
232
src ,
228
233
target .label .name ,
234
+ additional_inputs = getattr (ctx .rule .attr , "additional_compiler_inputs" , []),
229
235
)
230
236
for src in srcs
231
237
]
You can’t perform that action at this time.
0 commit comments