Skip to content

Commit b2e8f3a

Browse files
committed
Revert shared rule to class not module since it shares with old style
we will need to change these cases in batches
1 parent ac21481 commit b2e8f3a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cpp/misra/src/rules/RULE-6-8-3/AutomaticStorageAssignedToObjectGreaterLifetime.ql

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ import cpp
1818
import codingstandards.cpp.misra
1919
import codingstandards.cpp.rules.donotcopyaddressofautostorageobjecttootherobject.DoNotCopyAddressOfAutoStorageObjectToOtherObject
2020

21-
module AutomaticStorageAssignedToObjectGreaterLifetimeConfig implements
22-
DoNotCopyAddressOfAutoStorageObjectToOtherObjectConfigSig
21+
class AutomaticStorageAssignedToObjectGreaterLifetimeConfig extends DoNotCopyAddressOfAutoStorageObjectToOtherObjectSharedQuery
2322
{
24-
Query getQuery() {
25-
result = LifetimePackage::automaticStorageAssignedToObjectGreaterLifetimeQuery()
23+
AutomaticStorageAssignedToObjectGreaterLifetimeConfig() {
24+
this = LifetimePackage::automaticStorageAssignedToObjectGreaterLifetimeQuery()
2625
}
2726
}
28-
29-
import DoNotCopyAddressOfAutoStorageObjectToOtherObject<AutomaticStorageAssignedToObjectGreaterLifetimeConfig>

0 commit comments

Comments
 (0)