decomment(1)

decomment1

Remove comments from c and c++ files

Usage

decomment [file(s)]

Overview

decomment processes the named files, or standard input if none are named, copying their contents to standard output with comments removed. Line numbers in the input file(s) and out file(s) are unchanged, that is, if main() occurs on line 40 in the input, it will also appear on line 40 in the output despite comment removal.

Applications

decomment may be used to remove comments in order to simply other programs which process source code.

Diagnostics

No parsing-related diagnostics.

Warnings

Releases

11 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–10
  2. 11–13

Author

Paul Bame

From pmccabe 2.8-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.