Skip to content

Commit 9e20649

Browse files
Add comment about static fields
1 parent cd076e7 commit 9e20649

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/misra/src/rules/RULE-15-1-4/NonStaticMemberNotInitBeforeUse.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class RelevantAggregate extends Class {
5252
/**
5353
* A field must be checked for initialization if its type needs initialization, is not static, and
5454
* it does not have a default member initializer.
55+
*
56+
* Note that `Field` excludes static data members.
5557
*/
5658
class CheckedField extends Field {
5759
CheckedField() {

0 commit comments

Comments
 (0)