CLANG-REORDER-FIELDS(1)
π clang-reorder-fields β the manual page, bestie edition
okay so you found the man page for clang-reorder-fields(1), which lives in the User Commands section of the manual. it's a whole vibe, let's get into it π«Ά
β¨ NAME β¨
clang-reorder-fields β manual page for clang-reorder-fields 20 π
πΈ DESCRIPTION πΈ
OVERVIEW: it's literally a tool to reorder fields in C/C++ structs/classes. that's it, that's the whole thing, and honestly? iconic. π
USAGE:
clang-reorder-fields [options] <source0> [... <sourceN>]
so you pass it some <source0> and then as many more sources up to <sourceN> as you want, plus whatever options your heart desires. β¨
OPTIONS:
π Generic Options {#generic-options}
these are the generic ones, the little universal besties that basically every clang tool has:
--helpβ shows you all the available options. and if you want the secret extra ones, hit--help-hiddenfor more π--help-listβ displays a list of the available options. want the hidden ones on the list too?--help-list-hiddenfor more π--versionβ tells you which version of this program you're running, no cap π·οΈ
π¦ clang-reorder-fields options {#clang-reorder-fields-options}
these are the ones that are specifically this tool's thing:
--extra-arg=<string>β an additional argument to append to the compiler command line. appending, bestie, so it goes at the end β--extra-arg-before=<string>β an additional argument to prepend to the compiler command line. yep, this one goes at the front β¬ οΈ--fields-order=<string>β the desired fields order. this is literally the whole point of the tool, the main character of the argument list π-iβ overwrite edited files. she will edit in place, she's not shy π-p <string>β build path π οΈ--record-name=<string>β the name of the struct/class. yes, you have to tell her which one π―
real talk: -i overwrites edited files, so if you didn't mean to commit to that, maybe don't? protect your files, protect your peace π
that's the whole page, periodt. this was clang-reorder-fields version 20, dated September 2026 β go reorder some fields and slay π
β¨ππ¦πΈπ
π¦ where this page comes from
- ubuntu stonking: clang-tools-20 1:20.1.8-2ubuntu13 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms