-C

Pragma equivalent

None.

Purpose

When used in conjunction with the -E option, preserves or removes comments in preprocessed output.

When -C is in effect, comments are preserved. Otherwise, comments are removed.

Syntax

Read syntax diagramSkip visual syntax diagram -C

Defaults

-C is not in effect

Usage

The -C option has no effect without either the -E option. If -E is specified, continuation sequences are preserved in the output.

Predefined macros

None.

Examples

To compile myprogram.c to produce a file myprogram.i that contains the preprocessed program text including comments, enter:

ibm-clang myprogram.c -P -C

Related information