CLANG-RENAME(1)

πŸ“¦
version 16.0.6 Β· 2 versions
, in debian bookworm

πŸ’– NAME ✨

clang-rename β€” bestie, it's literally the manual page for clang-rename 16 πŸŽ€


πŸ¦‹ DESCRIPTION 🌈

okay so here's the whole vibe. the usage goes like this:

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

and then we got OPTIONS, which we're gonna get into below, one by one, no skipping, no cap πŸ’…


🌸 OPTIONS ✨

πŸ‘‘ Generic Options

the universal ones, the main characters of every clang tool:

  • --help β€” shows you all the available options. (and if you want the hidden ones too, it's --help-hidden) πŸ™ˆ
  • --help-list β€” shows you the list of available options. (yep, there's a --help-list-hidden for the hidden list too) 🫢
  • --version β€” tells you which version of this program you're running, iconic behavior ⭐

πŸ’… clang-rename common options

this is the part you actually came here for, bestie:

  • --export-fixes=<filename> β€” a YAML file where the suggested fixes get stored πŸ’Ύ
  • --extra-arg=<string> β€” an extra argument you append to the compiler command line 🧚
  • --extra-arg-before=<string> β€” an extra argument you prepend to the compiler command line (prepend, not append, that's the whole thing) πŸŽ€
  • --force β€” ignore nonexistent qualified names. like, don't even worry about them πŸ’€
  • -i β€” overwrite the edited <file>s. yes, it edits them in place, so be sure that's what you want 😭
  • --input=<string> β€” a YAML file to load oldname-newname pairs from πŸ“
  • --new-name=<string> β€” the new name you want to change the symbol to ✨
  • --offset=<uint> β€” locates the symbol by offset instead of by <line>:<column> πŸ”₯
  • -p <string> β€” build path πŸ—οΈ
  • --pl β€” prints the locations affected by the renaming to stderr πŸ‘€
  • --pn β€” prints the found symbol's name prior to renaming, to stderr πŸ’œ
  • --qualified-name=<string> β€” the fully qualified name of the symbol 🌸
real talk: -i overwrites your files, so double check before you let it cook πŸ”₯

that's the whole page, bestie, you ate it πŸ’– this was clang-rename 16, dated October 2023, and it lives under CLANG-RENAME(1) in the User Commands section β€” go rename something slayfully, ily, bye πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ where this page comes from