CLANG-RENAME(1)
π 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-hiddenfor even more. π«--help-listβ prints out the list of available options instead. and yes,--help-list-hiddenexists 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 tostderr.--pnβ prints the found symbol's name before renaming it, tostderr.--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
- debian trixie: clang-tools-18 1:18.1.8-18+b1 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: clang-tools-18 1:18.1.8-18ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms