CLANG-RENAME(1)
π clang-rename β the glow-up era
okay bestie, so this is the manual page for clang-rename 19, a User Command, and she's literally here to rename symbols in your C++ like a little fairy godmother π§β¨
πΈ NAME πΈ
clang-rename β manual page for clang-rename 19. that's the name, that's the brand, that's the whole vibe π
β¨ DESCRIPTION β¨
here's how you summon her:
USAGE: clang-rename [options] <source0> [... <sourceN>]
so you feed her some source files and some options and she does the thing. iconic behaviour, honestly π
π OPTIONS π
π Generic Options (the universal ones, iykyk)
--helpβ shows you all the available options. and if you're feeling nosy,--help-hiddenreveals even more π«£--help-listβ prints out a whole list of the available options. add--help-list-hiddenfor the hidden ones too π--versionβ tells you which version of this program you're running, in case you forgot. no judgment π
π¦ clang-rename common options (her main character options)
--export-fixes=<filename>β a YAML file to store suggested fixes in. she's keeping receipts π--extra-arg=<string>β an extra argument to append to the compiler command line--extra-arg-before=<string>β an extra argument to prepend to the compiler command line. yes it goes in front, that's the whole point π--forceβ ignore nonexistent qualified names. bold. fearless. lowkey feral π₯-iβ overwrite the edited<file>s. so like, in place. no take-backs π«Ά--input=<string>β a YAML file to load oldname-newname pairs from π₯--new-name=<string>β the new name you want to change the symbol to. the glow-up name, if you will β¨--offset=<uint>β locates the symbol by offset instead of by<line>:<column>. different route, same destination πΊοΈ-p <string>β build path π£οΈ--plβ prints the locations affected by the renaming tostderrπ--pnβ prints the found symbol's name prior to renaming tostderr, so you know who she was before the transformation π¦--qualified-name=<string>β the fully qualified name of the symbol. the whole legal government name π
real talk bestie: this page is short and sweet, so there's not a lot of chaos to warn you about β but -i really does overwrite your files, so maybe double-check before you commit to the bit π
and that's the whole page, no notes π this was clang-rename 19, dated June 2025 β stay slaying, and go rename something cute πβ¨π
π¦ where this page comes from
- debian bookworm: clang-tools-19 1:19.1.7-3~deb12u1 Β· APACHE-2-LLVM-EXCEPTIONS
- debian trixie: clang-tools-19 1:19.1.7-3+b1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms