Developer Guide and Reference

Contents

check-pointers-dangling, Qcheck-pointers-dangling

Determines whether the compiler checks for dangling pointer references.

Syntax

Linux:
-check-pointers-dangling
=
keyword
macOS:
None
Windows:
/Qcheck-pointers-dangling
:
keyword
Arguments
keyword
Specifies what type of dangling pointer checking occurs. Possible values are:
none
Disables checking for dangling pointer references. This is the default.
heap
Checks for dangling pointer references on the heap.
stack
Checks for dangling pointer references on the stack.
all
Checks for dangling pointer references on the heap and the stack.