14 comments (14 comments)0 reactions (0 reactions)1 assignee (1 assignee)C++10,782 forks (10,782 forks)batch import
bugzillacheck-requestclang-tidyconfirmedgood first issue
Repository metrics
- Stars
- 26,378 stars (26,378 stars)
- PR merge metrics
- Avg merge 1d 2h (Avg merge 1d 2h)1,000 merged PRs in 30d (1,000 merged PRs in 30d)
Description
|
|
| Bugzilla Link |
35086 |
| Version |
unspecified |
| OS |
All |
| CC |
@JonasToth |
Extended Description
It'll be great to have readability check with will convert ~0, -1 for unsigned integer types to std::numeric_limits::max().
Contributor guide
- Research direction
- Study existing clang tidy readability checks (e.g., readability identifier naming) to understand the structure. Use AST matchers to detect patterns like integer literal 1 or ~0 assigned to unsigned types. Then emit a fix it hint to replace with std::numeric limits<type>::max(). Look at the clang tidy documentation for creating checks.
- Tech stack
- cpp
- Domain
- toolingdeveloper experience
- Issue type
- Feature
- Prerequisites
- C++clang tidy basics