alias-const, Qalias-const

Enable a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const.

IDE Equivalent

Windows: None

Linux: Data > Honor Constant Constraint on Parameters

Mac OS: None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -[no-]alias-const
Windows:    /Qalias-const[-]

Arguments

None

Default

OFF      -no-alias-const
/Qalias-const-

Description

Enable a heuristic stating that if two arguments to a function have pointer type, a pointer to const does not alias a pointer to non-const. Also known as the input/output buffer rule, it assumes that input and output buffer arguments do not overlap.

Alternate Options

None