/C (Preserve Comments During Preprocessing)
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

/C (Preserve Comments During Preprocessing)


This option preserves comments during preprocessing. It requires the /E, /P, or /EP option. If you specify the /C option as well, the preprocessor passes source-file comments to its output file.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
  2. Click the C/C++ folder.
  3. Click the Preprocessor property page.
  4. Modify the Keep Comments property.

To set this compiler option programmatically

See KeepComments Property.

See Also

Compiler Options | Setting Compiler Options

© 2016 Microsoft