Skip to content

Commit cc619c7

Browse files
committed
Add data for extra files that need to be passed
1 parent a4348c2 commit cc619c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang_tidy/clang_tidy_test.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fi
8383
DefaultInfo(
8484
executable = ctx.outputs.executable,
8585
runfiles = ctx.runfiles(
86-
ctx.files.srcs + ctx.files.hdrs,
86+
ctx.files.srcs + ctx.files.hdrs + ctx.files.data,
8787
transitive_files = depset(
8888
[ctx.file.clang_tidy_config],
8989
transitive = [additional_files, find_cpp_toolchain(ctx).all_files, ctx.attr.clang_tidy_additional_deps.files],
@@ -107,6 +107,7 @@ clang_tidy_test = rule(
107107
),
108108
"srcs": attr.label_list(allow_files = True),
109109
"hdrs": attr.label_list(allow_files = True),
110+
"data": attr.label_list(allow_files = True),
110111
"copts": attr.string_list(),
111112
"conlyopts": attr.string_list(),
112113
"cxxopts": attr.string_list(),

0 commit comments

Comments
 (0)