CLANG-RENAME(1)

πŸ“¦
version 13.0.1 Β· 3 versions
, in ubuntu jammy

✨ NAME ✨

clang-rename β€” the manual page for clang-rename 13, bestie πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the whole vibe. you run it like this, no cap:

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

then it just... gives you OPTIONS. and there are so many options. we're going through every single one, don't worry 🌸

πŸŽ€ Generic Options πŸŽ€

these are the universal besties, every LLVM tool has them:

  • --help β€” shows you all the options you can actually use (and if you want the hidden ones too, hit up --help-hidden πŸ‘€)
  • --help-list β€” prints out the list of available options (and yeah, --help-list-hidden exists if you're feeling nosy)
  • --version β€” tells you what version of this program you're running. icon behavior honestly

πŸ’– clang-rename common options πŸ’–

this is the main character section, the whole reason you're here:

  • --export-fixes=<filename> β€” drops all the suggested fixes into a YAML file with this name. your edits, but written down πŸ“
  • --extra-arg=<string> β€” one more argument, appended to the end of the compiler command line
  • --extra-arg-before=<string> β€” one more argument, but prepended to the front of the compiler command line. yes the order matters, that's the whole point bestie
  • --force β€” tells it to just ignore qualified names that don't exist. chaotic, but sometimes you need it πŸ’€
  • -i β€” overwrites the edited <file>s. like, in place. be careful, no undo button 🫢
  • --input=<string> β€” a YAML file to load your oldname-newname pairs from
  • --new-name=<string> β€” the fresh new name you want the symbol changed to ✨
  • --offset=<uint> β€” finds the symbol by offset instead of by <line>:<column>. different route, same destination
  • -p=<string> β€” the build path
  • --pl β€” prints the locations that get affected by the rename out to stderr
  • --pn β€” prints the found symbol's name before the renaming happens, out to stderr
  • --qualified-name=<string> β€” the fully qualified name of the symbol, i.e. the whole entire government name πŸŽ€

ngl that's genuinely the whole page. every flag accounted for, we left nothing behind πŸ’œ

that's a wrap, babe β€” this was the manual page for clang-rename 13, dated July 2023 πŸ¦‹ go rename something and slay ✨

πŸ“¦ where this page comes from