CLANG-RENAME(1)
β¨ 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-hiddenfor more π--help-listβ prints out the list of available options. wanting more?--help-list-hiddenfor 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-iis a real placeholder β-ioverwrites 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
- ubuntu jammy: clang-tools-11 1:11.1.0-6 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms