CLANG-RENAME(1)
π 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-hiddenfor 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 tostderrπ--pnβ prints the found symbol's name prior to renaming, tostderrπ--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
- debian bookworm: clang-tools-16 1:16.0.6-15~deb12u1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms