Skip to content

Release 5.05 of SCC dated 2012-01-23

Compare
Choose a tag to compare
@jleffler jleffler released this 19 Jan 04:47
· 12 commits to master since this release

Major extension of functionality — new options.

Usage: scc [-chnwCV][-s rep][-q rep] [file ...]

Options:

  • -c — Print comments and not the code
  • -h — Print this help and exit
  • -n — Keep newlines in comments
  • -s rep — Replace the body of string literals with rep (a single character)
  • -q rep — Replace the body of character literals with rep (a single character)
  • -w — Warn about nested C-style comments
  • -C — Do not recognize C++/C99 style (//) comments
  • -V — Print version information and exit

Note that the sense of the -C flag changed between versions 4.03 and 4.04 and version 5.05.

The -s and -q options make analysis of C code simpler; you don't have to worry about false positives in the middle of character strings or character literals.