CLANG-RENAME(1)
β¨ clang-rename β¨
okay so bestie, welcome to the glow-up era of clang-rename, and this is literally the manual page for clang-rename 15 π
πΈ NAME πΈ
clang-rename β manual page for clang-rename 15
π¦ DESCRIPTION π¦
so the whole vibe is this: you feed it some source files and it renames stuff for you. the usage is:
USAGE: clang-rename [options] <source0> [... <sourceN>]
and then we get into the options, which are split into two little groups, bestie π
π OPTIONS π
β Generic Options
the basic-everything-flags, iykyk:
--helpβ shows you all the available options (and if you add--help-hiddenyou get even more, lowkey the secret menu π)--help-listβ shows you the list of available options (and--help-list-hiddenfor more, same energy as above fr fr)--versionβ shows you what version of this program you're running, so you know exactly what you're working with π
π clang-rename common options
this is the main character section, periodt:
--export-fixes=<filename>β drops a YAML file where all the suggested fixes get stored, so nothing gets lost π«Ά--extra-arg=<string>β one extra argument to append onto the compiler command line--extra-arg-before=<string>β same thing but it gets prepended instead, front of the line energy π--forceβ tells it to ignore qualified names that don't exist. it's giving "don't check, just do it"-iβ overwrites the edited<file>s. like, actually writes the changes in π₯--input=<string>β a YAML file to load your oldname-newname pairs from, so you can batch the whole thing--new-name=<string>β the new name you want the symbol changed to, the actual glow-up β¨--offset=<uint>β finds the symbol by offset instead of by<line>:<column>-p<string>β the build path--plβ prints the locations affected by the renaming out to stderr--pnβ prints the found symbol's name out to stderr before the renaming happens--qualified-name=<string>β the fully qualified name of the symbol, no ambiguity, no games π
and that's the whole page, bestie β no notes, no skipped options, every single flag accounted for π
this gorgeous little document came to you from clang-rename 15, dated July 2023 β slay, iconic, ate, no cap πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: clang-tools-15 1:15.0.7-0ubuntu0.22.04.3 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms