CLANG-REORDER-FIELDS(1)
π NAME π
clang-reorder-fields β bestie, this is the manual page for clang-reorder-fields version 12, and she's here to shuffle your struct fields around like she's reorganizing her Pinterest boards π
β¨ DESCRIPTION β¨
πΈ OVERVIEW
OK so picture this: you've got a C/C++ struct or class and the fields are just... in an order. Any order. Chaos order. This tool reorders those fields for you. That's it, that's the whole vibe. A tool to reorder fields in C/C++ structs/classes. Periodt. π¦
π USAGE
clang-reorder-fields [options] <source0> [... <sourceN>]
You hand her your options, then one or more source files β <source0> and friends all the way up to <sourceN> β and she does her thing. Slay. β¨
π₯ OPTIONS
β Generic Options
These are the ones basically every clang tool has, the little universal besties:
--helpβ shows you all the available options. Want more? There's--help-hiddenfor more. π--help-listβ shows you the list of available options. And yep, there's a--help-list-hiddenfor more of those too.--versionβ tells you the version of this program. Identity check, who is she π
π clang-reorder-fields options
Now the main character options, the ones that are actually hers:
--extra-arg=<string>β an extra argument that gets appended to the compiler command line. Sneak it in at the end, no cap.--extra-arg-before=<string>β an extra argument that gets prepended to the compiler command line. This one goes first, like she's cutting the line π--fields-order=<string>β the desired fields order. This is literally the whole point, bestie. Tell her the order you want. π-iβ overwrite edited files. She edits them in place. Fr fr, no backup, she just goes for it. π-p=<string>β build path.--record-name=<string>β the name of the struct/class. Gotta tell her which one you're talking about, iykyk π
Heads up bestie: -i overwrites your edited files directly. No undo button, no "are you sure", just main character energy. Be sure before you commit to the bit π
And that's the whole page, gorgeous. This was clang-reorder-fields version 12, from February 2022 β go forth and reorder those fields, you absolute icon π«ΆπΈβ¨
π¦ where this page comes from
- ubuntu jammy: clang-tools-12 1:12.0.1-19ubuntu3 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms