CLANG-RENAME(1)

πŸ“¦
version 18.1.8 Β· 5 versions
, in debian trixie, ubuntu questing

πŸ’… NAME πŸ’…

okay so bestie, welcome to clang-rename β€” it's the manual page for clang-rename 18, aka the little tool that goes "that symbol? new name. right now. periodt." πŸŽ€


✨ DESCRIPTION ✨

The way you run it is literally this:

USAGE: clang-rename [options] <source0> [... <sourceN>]

so you hand it some source files β€” <source0>, and if you're feeling extra, all the way up to <sourceN> β€” plus whatever options you want, and it does its thing. 🌸

🌈 OPTIONS 🌈

πŸ‘‘ Generic Options

These are the "everyone gets these" options, no cap:

  • --help β€” shows you all the available options. and if that's not enough tea for you, there's --help-hidden for even more. πŸ«–
  • --help-list β€” prints out the list of available options instead. and yes, --help-list-hidden exists too if you want the hidden ones. πŸ™ˆ
  • --version β€” tells you which version of the program you're running. slay.

πŸ¦‹ clang-rename common options

okay this is the main character section, pay attention:

  • --export-fixes=<filename> β€” writes the suggested fixes into a YAML file with this name. πŸ’Ύ
  • --extra-arg=<string> β€” an extra argument that gets appended to the compiler command line.
  • --extra-arg-before=<string> β€” same vibe but it gets prepended to the compiler command line instead. before, not after, iykyk.
  • --force β€” ignores qualified names that don't exist. like, "girl, i don't know her" energy. 😭
  • -i β€” overwrites the edited <file>s in place. careful bestie, this one commits. πŸ”₯
  • --input=<string> β€” a YAML file to load your oldname-newname pairs from. basically a rename mood board. πŸŽ€
  • --new-name=<string> β€” the new name you want the symbol to have. the glow-up itself. ✨
  • --offset=<uint> β€” finds the symbol by offset instead of by <line>:<column>. two ways to locate, pick your fighter.
  • -p <string> β€” the build path. πŸ—οΈ
  • --pl β€” prints the locations affected by the renaming to stderr.
  • --pn β€” prints the found symbol's name before renaming it, to stderr.
  • --qualified-name=<string> β€” the fully qualified name of the symbol. like the government name, not the nickname. πŸ’œ

bestie reminder: <source0> [... <sourceN>] are positional, so they come after your options β€” don't fight the synopsis, she's right.

and that's the whole page, no notes. this was written for clang-rename 18 back in June 2025 β€” if you're reading this from the future, hiii, hope the tool still ate. πŸ‘‘πŸŒˆβ­

mwah, go rename something iconic πŸ’–

πŸ“¦ where this page comes from