Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

C

Places comments in preprocessed source output.

Syntax

Linux:

-C

macOS:

-C

Windows:

/C

Arguments

None

Default

OFF

No comments are placed in preprocessed source output.

Description

This option places (or preserves) comments in preprocessed source output.

Comments following preprocessing directives, however, are not preserved.

IDE Equivalent

Visual Studio: Preprocessor > Keep Comments

Eclipse: None

Xcode: None

Alternate Options

None

Example

The following commands cause the compiler to preserve comments in the prog1.i preprocessed file.

On Windows* systems:

icl /C /P prog1.cpp prog2.cpp

On Linux* systems:

icpc -C -P prog1.cpp prog2.cpp

On macOS systems:

icpc -C -P prog1.cpp prog2.cpp