ifnames(1)

ifnames1

Extract cpp conditionals from a set of files

Usage

ifnames [OPTION] ... [FILE] ...

Overview

Scan all of the C source FILES (or the standard input, if none are given) and write to the standard output a sorted list of all the identifiers that appear in those files in '#if', '#ifdef', '#ifndef', '#elif', '#elifdef', or '#elifndef' directives. Print each identifier on a line, followed by a space-separated list of the files in which that identifier occurs.

-h, --help

print this help, then exit

-V, --version

print version number, then exit

Releases

16 releases since Debian 2.0 (Hamm); the text changed 10 times.

  1. 2.0–2.2
  2. 3.0
  3. 3.1
  4. 4.0–7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13
  11. Arch

-V since Debian 3.0 (Woody).

--macrodir until Debian 2.2 (Potato); -m until Debian 2.2 (Potato).

Author

Written by David J. MacKenzie and Paul Eggert.

Reporting bugs

Report bugs to ⟨[email protected]⟩, or via Savannah: ⟨https://savannah.gnu.org/support/?group=autoconf⟩.

From autoconf 2.73-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.