Skip to content

Commit 2f80208

Browse files
committed
Remove unused predicate and update .expected
1 parent 1c5dc84 commit 2f80208

File tree

3 files changed

+426
-351
lines changed

3 files changed

+426
-351
lines changed

cpp/misra/src/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ class NarrowedHeapAllocationFunctionCall extends Cast {
7070
int getMinNumElements() {
7171
result = alloc.getMinNumBytes() / this.getUnderlyingType().(PointerType).getBaseType().getSize()
7272
}
73-
74-
HeapAllocationFunctionCall getAllocFunctionCall() { result = alloc }
7573
}
7674

7775
newtype TArrayAllocation =

0 commit comments

Comments
 (0)