Developer Guide and Reference

Contents

Zc

Lets you specify ANSI C standard conformance for certain language features.

Syntax

Linux:
None
macOS:
None
Windows:
/Zc:
arg1
[,
arg2
]
Arguments
arg
Is the language feature for which you want standard conformance.
The settings are compatible with Microsoft* settings for option /Zc. For a list of supported settings, see the table in the Description section of this topic.
Default
varies
See the table in the Description section of this topic.
Description
This option lets you specify ANSI C standard conformance for certain language features.
If you do not want the default behavior for one or more of the settings, you must specify the negative form of the setting. For example, if you do not want the
forScope
or
wchar_t
default behavior, you should specify
/Zc:forScope-,wchar_t-
.
The following table shows the supported Microsoft settings for option
/Zc
.
/Zc
setting name
Description
auto[-]
Enforces compliance to the new standard meaning for auto (default). Disabled by /Zc:auto-.
forScope[-]
Enforces standard compliance in for-loop scope (default). Disabled by /Zc:forScope-.