Skip to content

Commit

Permalink
Update UnnecessaryMutableChecker.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider authored Dec 22, 2024
1 parent 739976f commit 41c8cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/StaticAnalyzers/src/UnnecessaryMutableChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ namespace clangcms {
}

// == Skip non-private mutables
// Public mutable members are flagged by PublicMutableChecker
// Private ones can be modified by other classes, so it is bit hard to find if
// Public mutable members are forbidden and flagged by PublicMutableChecker
// Protected ones can be modified by derived classes, so it is bit hard to find if
// a `mutable` attribute is not necessary (i.e. not modified in any const method).
if (Field->getAccess() != clang::AS_private) {
return;
Expand Down

0 comments on commit 41c8cf1

Please sign in to comment.