4 Commits

Author SHA1 Message Date
Kazu Hirata
5bd3c44b79
[clang-tools-extra] Remove redundant control flow statements (NFC) (#140846) 2025-05-21 00:29:17 -07:00
Discookie
f5ff3a560f
[clang-tidy] Do not emit file path for anonymous enums in readability-enum-initial-value check (#112496)
Previously the name of anonymous enums in the check were `enum 'enum
(unnamed at /full/path/to/file.c:1:1)'`, which breaks reproducibility of
clang-tidy reports when the analyzed project is in a different folder.
2024-10-28 11:19:22 +00:00
Julian Schmidt
caaac84ab2
[clang-tidy] only diagnose definitions in readability-enum-initial-value (#107652)
With the `isDefinition` matcher, the analysis and diagnostics will be
constrained to definitions only. Previously forward declarations were
diagnosed as well.

Fixes #107590
2024-09-17 10:44:22 +02:00
Congcong Cai
3365d62179
[clang-tidy] add new check readability-enum-initial-value (#86129)
Fixes: #85243.
2024-04-01 15:53:57 +08:00