MCPcopy Create free account
hub / github.com/compilets/compilets / notTriviallyDestructible

Function notTriviallyDestructible

src/cpp-syntax-utils.ts:28–31  ·  view source on GitHub ↗
(members: ClassElement[])

Source from the content-addressed store, hash-verified

26 * Return whether the members are trivially destrutible.
27 */
28export function notTriviallyDestructible(members: ClassElement[]): boolean {
29 return members.filter(m => m instanceof PropertyDeclaration)
30 .some(m => !m.type.isTriviallyDestructible());
31}
32
33/**
34 * Create the Trace method required by cppgc::GarbageCollected.

Callers 2

constructorMethod · 0.90
printDeclarationMethod · 0.90

Calls 2

filterMethod · 0.80

Tested by

no test coverage detected