CLANG-RENAME(1)
π NAME π
clang-rename β bestie, this is the manual page for clang-rename 14, and it's gonna change your whole life (or at least your symbol names, which is basically the same thing) π
β¨ DESCRIPTION β¨
okay so here's the whole vibe, literally the entire thing:
USAGE: clang-rename [options] <source0> [... <sourceN>]
that's it. that's the moment. you point it at some sources, you tell it what to rename, and it slays. π¦
πΈ OPTIONS πΈ
not me listing every single one, but like, we're doing this properly. all of them. every last one. periodt.
π Generic Options
the boring-but-essential girlies. every tool has them, and honestly? iconic for it.
--helpβ shows you all the available options (--help-hiddenif you wanna see even more π)--help-listβ shows you the list of available options (--help-list-hiddenfor the extended cut)--versionβ tells you what version of this program you're running, so you can flex
π§ clang-rename common options
okay THIS is where it gets good. the main character options, the ones you actually came here for π
--export-fixes=<filename>β a YAML file where all the suggested fixes get stored. it's giving receipts β¨--extra-arg=<string>β an extra argument to append to the compiler command line (append! after! not before! we said what we said)--extra-arg-before=<string>β an extra argument to prepend to the compiler command line. front of the line, bestie, no cuts π--forceβ ignore qualified names that don't exist. like, they're not there? don't care. moving on. π-iβ overwrite the edited<file>s. in place. no take-backs, no backup, just vibes π (fr fr, it writes over your files)--input=<string>β a YAML file to load your oldname-newname pairs from. bulk renaming era π«Ά--new-name=<string>β the new name you want to change the symbol to. the glow-up itself π--offset=<uint>β locates the symbol by offset instead of<line>:<column>. two ways to find the same girl β-p=<string>β build path--plβ prints the locations affected by renaming tostderr. a little map of everywhere you're about to change πΊοΈ--pnβ prints the found symbol's name prior to renaming tostderr. so you know who it was before the transformation π--qualified-name=<string>β the fully qualified name of the symbol. the whole entire government name, no nicknames π₯
lowkey important:--extra-argappends and--extra-arg-beforeprepends and those are not the same thing, don't mix them up bestie, iykyk π
and that's the whole page, we ate and left no crumbs π
signing off from clang-rename 14, dated May 2025 β love u, go rename something cute πβ¨π
π¦ where this page comes from
- ubuntu questing: clang-tools-14 1:14.0.6-20ubuntu3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms