CLANG-RENAME(1)

πŸ“¦
version 17.0.6 Β· 4 versions
, in debian trixie, ubuntu questing

πŸ’… NAME πŸ’…

clang-rename β€” the manual page for clang-rename 17, bestie. it's a User Command, it lives in section 1, and yes she's iconic.


✨ DESCRIPTION ✨

okay so. here's the whole vibe. the usage is literally this, copy it exactly:

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

and then we got the OPTIONS. buckle up, there's a few. πŸŽ€

🌸 Generic Options 🌸

these are the universal ones, the main character energy options that every clang tool shows up with:

  • --help β€” shows you all the available options. and if you want the secret menu, like the ones they don't advertise, add --help-hidden for more. πŸ™ˆ
  • --help-list β€” prints out a list of all the available options. and yep, --help-list-hidden for more, same deal. ✨
  • --version β€” tells you what version of this program you're running. slay.

πŸ¦‹ clang-rename common options πŸ¦‹

now THIS is the section you actually came here for. the real ones:

  • --export-fixes=<filename> β€” a YAML file where the suggested fixes get stored. like, the receipts of what it would have done. πŸ“
  • --extra-arg=<string> β€” an extra argument you wanna append to the compiler command line.
  • --extra-arg-before=<string> β€” same idea but you prepend it instead. front of the line, main character behavior. πŸ‘‘
  • --force β€” ignores nonexistent qualified names. like, doesn't care if the thing you named isn't there. bold. πŸ’€
  • -i β€” overwrites the edited <file>s. yes, in place. no take-backs. 😭
  • --input=<string> β€” a YAML file to load your oldname-newname pairs from. the glow-up instructions, basically. πŸ’–
  • --new-name=<string> β€” the new name you want the symbol changed to. the whole point, fr fr. ⭐
  • --offset=<uint> β€” locates the symbol by offset instead of by <line>:<column>. different coordinate system, same destination. 🌈
  • -p <string> β€” the build path.
  • --pl β€” prints the locations affected by the renaming out to stderr.
  • --pn β€” prints the found symbol's name, before it gets renamed, out to stderr.
  • --qualified-name=<string> β€” the fully qualified name of the symbol. the full government name, no nicknames. πŸ’œ
ngl bestie, watch out for -i β€” it edits your files for real. no undo, no ctrl+z, no "wait actually." be sure. 🫢

that's the whole page, no cap. this was clang-rename 17 from June 2025 β€” go rename something and make it gorgeous. periodt. πŸ’…βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from