They are not locally const qualified so they weren't classified as
constants by the readability-identifier-naming check.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 11559 Build 11559: arc lint + arc unit
Event Timeline
Comment Actions
Sorry for the delay. I missed this revision somehow. Please add cfe-commits to the subscribers list so that others can chime in.
Comment Actions
One nit. Otherwise seems fine.
clang-tidy/readability/IdentifierNamingCheck.cpp | ||
---|---|---|
502 | Can we check for !Type.isNull() && Type.isConstQualified() once here? if (!Type.isNull() && Type.isConstQualified()) { if (Decl->isStaticDataMember() && NamingStyles[SK_ClassConstant]) return SK_ClassConstant; if (Decl->isFileVarDecl() && NamingStyles[SK_GlobalConstant]) return SK_GlobalConstant; ... } |
Comment Actions
Looks good!
Thank you for the fix! Do you need someone to commit it for you? If yes, please rebase the fix on top of the current HEAD and let me know.
Can we check for !Type.isNull() && Type.isConstQualified() once here?