Skip to content

Commit 3089c6f

Browse files
committed
Add two small models
1 parent fa83b3d commit 3089c6f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpp/common/src/codingstandards/cpp/DynamicMemory.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@ class AllocateOrDeallocateStdlibMemberFunction extends MemberFunction {
1616
this.getNamespace().getParentNamespace*() instanceof StdNamespace
1717
}
1818
}
19+
20+
class StdAllocator extends Class {
21+
StdAllocator() { this.hasGlobalOrStdName("allocator") }
22+
}
23+
24+
class StdPmrMemoryResource extends Class {
25+
StdPmrMemoryResource() { this.hasQualifiedName("std::pmr", "memory_resource") }
26+
}

0 commit comments

Comments
 (0)