Skip to content

Commit db67701

Browse files
yuyawkerenon
authored andcommitted
update readme
1 parent c02a862 commit db67701

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# bazel_clang_tidy
22

3-
Run clang-tidy on Bazel C++ targets directly,
3+
Run clang-tidy on Bazel C/C++ targets directly,
44
without generating a compile commands database,
55
and take advantage of Bazels powerful cache mechanism.
66

@@ -87,7 +87,8 @@ users may tag a target with `no-clang-tidy` or `noclangtidy`.
8787

8888
## Features
8989

90-
- Run clang-tidy on any C++ target
90+
- Run clang-tidy on any C/C++ target
91+
- A file is treated as C if it has the `.c` extension or its target includes the `clang-tidy-is-c-tu` tag; otherwise, it is treated as C++.
9192
- Run clang-tidy without also building the target
9293
- Use Bazel to cache clang-tidy reports: recompute stale reports only
9394

0 commit comments

Comments
 (0)