Skip to content

Commit 5deb108

Browse files
committed
use idPod instead of isPOD
1 parent 182adb1 commit 5deb108

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cpp/autosar/src/codingstandards/cpp/HardwareOrProtocolInterface.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DefinedSizeType extends Type {
3939

4040
class DefinedSizeClass extends Class {
4141
DefinedSizeClass() {
42-
this.isPOD() and
42+
this.isPod() and
4343
forall(Field f | f = this.getAField() | f.getType() instanceof DefinedSizeType)
4444
}
4545
}

cpp/autosar/src/rules/A11-0-1/NonPodTypeShouldBeDefinedAsClass.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ import codingstandards.cpp.Typehelpers
2222
from Struct s
2323
where
2424
not isExcluded(s, ClassesPackage::nonPodTypeShouldBeDefinedAsClassQuery()) and
25-
not s.isPOD()
25+
not s.isPod()
2626
select s, "Non-POD type defined as struct instead of class."

cpp/autosar/src/rules/A12-0-2/OperationsAssumingMemoryLayoutPerformedOnObjects.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import cpp
1919
import codingstandards.cpp.autosar
2020

2121
class Object extends Class {
22-
Object() { not this.(Struct).isPOD() }
22+
Object() { not this.(Struct).isPod() }
2323
}
2424

2525
predicate isPointerToObject(Expr e) {

cpp/autosar/src/rules/A9-6-1/DataTypesUsedForInterfacingWithHardwareOrProtocolsMustBeTrivialAndStandardLayout.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ from HardwareOrProtocolInterfaceClass c
2323
where
2424
not isExcluded(c,
2525
ClassesPackage::dataTypesUsedForInterfacingWithHardwareOrProtocolsMustBeTrivialAndStandardLayoutQuery()) and
26-
not c.isPOD()
26+
not c.isPod()
2727
select c,
2828
"Data type used for hardware interface or communication protocol is not standard layout and trivial."

cpp/autosar/src/rules/M11-0-1/MemberDataInNonPodClassTypesNotPrivate.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import cpp
1717
import codingstandards.cpp.autosar
1818

1919
class NonPODType extends Class {
20-
NonPODType() { not this.isPOD() }
20+
NonPODType() { not this.isPod() }
2121
}
2222

2323
from NonPODType p, Field f

cpp/common/src/codingstandards/cpp/TrivialType.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ predicate isTrivialType(Type t) {
284284
/** A POD type as defined by [basic.types]/9. */
285285
class PODType extends Type {
286286
PODType() {
287-
this.(Class).isPOD()
287+
this.(Class).isPod()
288288
or
289289
isScalarType(this)
290290
or

0 commit comments

Comments
 (0)