CLANG-RENAME(1)
π NAME π
clang-rename β the manual page for clang-rename 17, bestie. it's a User Command, it lives in section 1, and yes she's iconic.
β¨ DESCRIPTION β¨
okay so. here's the whole vibe. the usage is literally this, copy it exactly:
USAGE: clang-rename [options] <source0> [... <sourceN>]
and then we got the OPTIONS. buckle up, there's a few. π
πΈ Generic Options πΈ
these are the universal ones, the main character energy options that every clang tool shows up with:
--helpβ shows you all the available options. and if you want the secret menu, like the ones they don't advertise, add--help-hiddenfor more. π--help-listβ prints out a list of all the available options. and yep,--help-list-hiddenfor more, same deal. β¨--versionβ tells you what version of this program you're running. slay.
π¦ clang-rename common options π¦
now THIS is the section you actually came here for. the real ones:
--export-fixes=<filename>β a YAML file where the suggested fixes get stored. like, the receipts of what it would have done. π--extra-arg=<string>β an extra argument you wanna append to the compiler command line.--extra-arg-before=<string>β same idea but you prepend it instead. front of the line, main character behavior. π--forceβ ignores nonexistent qualified names. like, doesn't care if the thing you named isn't there. bold. π-iβ overwrites the edited<file>s. yes, in place. no take-backs. π--input=<string>β a YAML file to load youroldname-newnamepairs from. the glow-up instructions, basically. π--new-name=<string>β the new name you want the symbol changed to. the whole point, fr fr. β--offset=<uint>β locates the symbol by offset instead of by<line>:<column>. different coordinate system, same destination. π-p <string>β the build path.--plβ prints the locations affected by the renaming out to stderr.--pnβ prints the found symbol's name, before it gets renamed, out to stderr.--qualified-name=<string>β the fully qualified name of the symbol. the full government name, no nicknames. π
ngl bestie, watch out for -i β it edits your files for real. no undo, no ctrl+z, no "wait actually." be sure. π«Ά
that's the whole page, no cap. this was clang-rename 17 from June 2025 β go rename something and make it gorgeous. periodt. π
β¨ππ¦
π¦ where this page comes from
- debian trixie: clang-tools-17 1:17.0.6-22+b2 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: clang-tools-17 1:17.0.6-22build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms