This documentation is archived and is not being maintained.

/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