Skip to content

Commit a4348c2

Browse files
committed
fix c srcs being treated as c++ as well
1 parent a562035 commit a4348c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang_tidy/clang_tidy_test.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fi
7373
clang_tidy_config = ctx.file.clang_tidy_config.short_path,
7474
output = ctx.outputs.executable.path,
7575
c_sources = " ".join([x.short_path for x in srcs if is_c_translation_unit(x, ctx.attr.tags)]),
76-
cxx_sources = " ".join([x.short_path for x in srcs]),
76+
cxx_sources = " ".join([x.short_path for x in srcs if not is_c_translation_unit(x, ctx.attr.tags)]),
7777
c_flags = " ".join([_fix_argument_path(ctx, x) for x in ccinfo_copts + c_flags]),
7878
cxx_flags = " ".join([_fix_argument_path(ctx, x) for x in ccinfo_copts + cxx_flags]),
7979
),

0 commit comments

Comments
 (0)