Merge pull request #1062 from epage/cpp

fix(dict): Don't correct countr_one
This commit is contained in:
Ed Page 2024-07-25 09:31:08 -05:00 committed by GitHub
commit 7461343b85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -7,6 +7,15 @@
pub(crate) const NO_CHECK_TYPES: &[&str] = &["cert", "lock"];
pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
(
"cpp",
StaticDictConfig {
ignore_idents: &[
"countr_one", // `std::countr_one`
],
ignore_words: &[],
},
),
(
"css",
StaticDictConfig {

View file

@ -0,0 +1,5 @@
int main() {
uint8 i = 0;
std::countr_one(i);
return 0;
}