OS Manuals

/usr/lib/llvm-21/bin/clang-reorder-fields

Clang 21 extras

From clang-21-extras 21.1.8-r17 (os), captured 2026-11-05 by running clang-reorder-fields --help (exit 0). permalink

OVERVIEW: A tool to reorder fields in C/C++ structs/classes.

USAGE: clang-reorder-fields [options] <source0> [... <sourceN>]

OPTIONS:

Generic Options:

  --help                      - Display available options (--help-hidden for more)
  --help-list                 - Display list of available options (--help-list-hidden for more)
  --version                   - Display the version of this program

clang-reorder-fields options:

  --extra-arg=<string>        - Additional argument to append to the compiler command line
  --extra-arg-before=<string> - Additional argument to prepend to the compiler command line
  --fields-order=<string>     - The desired fields order.
  -i                          - Overwrite edited files.
  -p <string>                 - Build path
  --record-name=<string>      - The name of the struct/class.
Options (8)
OptionDescriptionSource
--help- Display available options (--help-hidden for more)help
--help-list- Display list of available options (--help-list-hidden for more)help
--version- Display the version of this programhelp
--extra-arg string- Additional argument to append to the compiler command linehelp
--fields-order string- The desired fields order.help
-i- Overwrite edited files.help
-p string- Build pathhelp
--record-name string- The name of the struct/class.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.