CLANG-RENAME(1)

πŸ“¦ version 11.1.0, in ubuntu jammy

✨ CLANG-RENAME ✨

okay bestie, so clang-rename is a whole manual page for clang-rename 11 and it's literally about to change your life (or at least your symbol names πŸ’…). here's the tea, no cap.


🌸 DESCRIPTION 🌸

USAGE: it goes like this, exactly like this, don't freestyle it:

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

then we get into the OPTIONS and honestly? there's a lot. let's go.

πŸŽ€ Generic Options πŸŽ€

the basics, the starter pack, the main character energy:

  • --help β€” shows you all the available options. and if you want the secret ones too, there's --help-hidden for more πŸ‘€
  • --help-list β€” prints out the list of available options. wanting more? --help-list-hidden for more ✨
  • --version β€” tells you what version of this program you're running. identity check πŸͺž

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

okay now the actual good stuff:

  • --export-fixes=<filename> β€” drops the suggested fixes into a YAML file. save the receipts, bestie πŸ’Ύ
  • --extra-arg=<string> β€” an extra argument, appended to the compiler command line
  • --extra-arg-before=<string> β€” same vibe but it gets prepended instead, so it goes first πŸ‘‘
  • --force β€” ignores nonexistent qualified names. it's giving "i don't see it so it's not there" πŸ’€
  • -i β€” overwrites the edited <file>s. be careful, this one really does the thing πŸ™ˆ
  • --input=<string> β€” a YAML file to load your oldname-newname pairs from. bulk renaming? obsessed πŸ“
  • --new-name=<string> β€” the new name you want the symbol to have. the glow-up ✨
  • --offset=<uint> β€” finds the symbol by offset instead of by <line>:<column>. different route, same destination πŸ—ΊοΈ
  • -p=<string> β€” build path
  • --pl β€” prints the locations affected by the renaming to stderr. so you can see what's about to change πŸ“
  • --pn β€” prints the found symbol's name before renaming it, to stderr. pre-glow-up photo πŸ“Έ
  • --qualified-name=<string> β€” the fully qualified name of the symbol. full government name, periodt πŸ’…
ngl the <file> in -i is a real placeholder β€” -i overwrites edited files, so know what you're pointing it at before you commit, fr fr.

clang-rename 11 Β· January 2022 β€” that's the version and the date, mwah, tysm for reading my little manual page, ily, go rename something iconic πŸ«ΆπŸŒˆπŸ’–

πŸ“¦ where this page comes from