CLANG-APPLY-REPLACEMENTS(1)
π NAME π
clang-apply-replacements β bestie, this is the manual page for clang-apply-replacements 11 β¨
πΈ DESCRIPTION πΈ
Okay so here's the vibe: this tool takes all those replacement files your clang tooling spat out and actually applies them to your codebase. It goes through your search root, finds the change description files, and merges/replaces stuff. Iconic behaviour, no cap. π«Ά
Here's how you call it:
USAGE: clang-apply-replacements [options] <Search Root Directory>
OPTIONS: are down below, grouped into their little squads π
β¨ OPTIONS β¨
π Formatting Options
--formatβ turns on formatting for the code that got changed by applying replacements. If you want to pick which style it uses, go hand that job to-styleπ--style=<string>β the coding style, and currently the supported ones are:LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit.
Use -style=file to load your style config from a .clang-format file that lives in one of the parent directories of the source file β or, for stdin, the current directory. π¦
And use -style="{key: value, ...}" if you want to set specific parameters, like literally:
-style="{BasedOnStyle: llvm, IndentWidth: 8}"
--style-config=<string>β the path to a directory containing a.clang-formatfile. That file describes the formatting style to use for formatting code when you're running-style=file. π
π Generic Options
--helpβ shows you the available options (and--help-hiddenif you want even more π)--help-listβ shows you the list of available options (and--help-list-hiddenfor more π)--versionβ shows you the version of this program. Hello,11. π
π Replacement Options
--remove-change-desc-filesβ removes the change description files, and it does this regardless of whether the merging/replacing actually succeeded. Yes, regardless. Be aware bestie. π
That's the whole page, babes. This was clang-apply-replacements 11, dated January 2022 β go forth and apply those replacements, you absolute main character. π§β¨
π¦ 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