CLANG-REORDER-FIELDS(1)
β¨ CLANG-REORDER-FIELDS β¨
okay bestie, gather round, because this is clang-reorder-fields β it lives in the User Commands section of the manual, it's version 11, and it is genuinely such a slay little tool π
π NAME π
clang-reorder-fields β the manual page for clang-reorder-fields 11 π
πΈ DESCRIPTION πΈ
π¦ OVERVIEW
OVERVIEW: a whole tool whose entire job is reordering the fields inside your C/C++ structs and classes. that's it. that's the girl. she does one thing and she eats every time β¨
π USAGE
USAGE:
clang-reorder-fields [options] <source0> [... <sourceN>]
so you pass her some options, then one or more source files β <source0> up to <sourceN>, fr fr, you can give her a whole little pile of them π«Ά
π OPTIONS
β Generic Options
these are the classic "every tool has these" girlies:
--helpβ shows you all the options available. and if you want the hidden ones too? pass--help-hiddeninstead. secret menu energy π--help-listβ prints out the list of available options. and yep, there's a--help-list-hiddenfor the hidden ones too π--versionβ tells you what version of this program you're running. iykyk π’
π§ clang-reorder-fields options
now the main character options, the ones that actually do the reordering:
--extra-arg=<string>β an extra argument that gets appended to the compiler command line β¨--extra-arg-before=<string>β same idea, but this one gets prepended to the compiler command line instead. front of the line, no cuts π--fields-order=<string>β the desired fields order. this is the whole point of the tool, bestie β you tell her the order you want πΈ-iβ overwrite edited files. she edits them in place, no copy, no backup, just vibes π₯-p=<string>β build path π¦--record-name=<string>β the name of thestruct/classyou're targeting. you gotta tell her which one π
β οΈ heads up: -i overwrites your files for real. no undo button, no take-backs. just saying π
π that's a wrap π
and that's the whole page, bestie β clang-reorder-fields 11, dated January 2022, from the User Commands corner of the manual. go reorder some fields and absolutely devour π
β¨ππ¦
π¦ where this page comes from
- ubuntu jammy: clang-tools-11 1:11.1.0-6 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms