CLANG-RENAME(1)

πŸ“¦
version 14.0.6 Β· 5 versions
, in ubuntu questing

πŸ’– 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-hidden if you wanna see even more πŸ‘€)
  • --help-list β€” shows you the list of available options (--help-list-hidden for 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 to stderr. a little map of everywhere you're about to change πŸ—ΊοΈ
  • --pn β€” prints the found symbol's name prior to renaming to stderr. 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-arg appends and --extra-arg-before prepends 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