Skip to content

Commit f43f9d6

Browse files
committed
Check files in hdrs
See original PR: #13
1 parent d2aecc5 commit f43f9d6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.clang-tidy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ Checks: >
66
google-*,
77
performance-*,
88
9-
HeaderFilterRegex: ".*"
10-
119
WarningsAsErrors: "*"

clang_tidy/clang_tidy.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def _rule_sources(ctx):
9494
if hasattr(ctx.rule.attr, "srcs"):
9595
for src in ctx.rule.attr.srcs:
9696
srcs += [src for src in src.files.to_list() if src.is_source and check_valid_file_type(src)]
97+
if hasattr(ctx.rule.attr, "hdrs"):
98+
for hdr in ctx.rule.attr.hdrs:
99+
srcs += [hdr for hdr in hdr.files.to_list() if hdr.is_source and check_valid_file_type(hdr)]
97100
return srcs
98101

99102
def _toolchain_flags(ctx, action_name = ACTION_NAMES.cpp_compile):

0 commit comments

Comments
 (0)