CLANG-APPLY-REPLACEMENTS(1)
β¨ NAME β¨
clang-apply-replacements β bestie, this is the manual page for clang-apply-replacements 17, and it lives in the User Commands corner of the man universe π
πΈ DESCRIPTION πΈ
Okay so here's the vibe. You run it like this:
USAGE: clang-apply-replacements [options] <Search Root Directory>
That's it. That's the whole entrance. Now let's get into the options, because there are a few and they all matter π«Ά
π OPTIONS π
π Formatting Options π
--formatβ turns on formatting of 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>β sets the coding style. Now,<string>is giving "I contain multitudes," because it can be any one of these four things:- A preset, and the presets on the menu are:
LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit. 'file'β loads the style config from a.clang-formatfile in one of the parent directories of the source file (and for stdin, see--assume-filename, iykyk). If there's no.clang-formatfile to be found anywhere, it falls back to--fallback-style. Also, heads up:--style=fileis the default, so this is the one you're getting unless you say otherwise.'file:<format_file_path>'β when you want to explicitly point at the configuration file, no searching, no guessing, just the exact path."{key: value, ...}"β for setting specific parameters by hand, like so:
- A preset, and the presets on the menu are:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
--style-config=<string>β a path to a directory that contains a.clang-formatfile, and that file describes the formatting style to use for formatting code when you're running-style=file.
β Generic Options β
--helpβ displays the available options. And if you want the hidden ones too,--help-hiddenis right there.--help-listβ displays the list of available options. Same deal:--help-list-hiddenexists for the secret menu.--versionβ displays the version of this program. Iconic of it, honestly.
π Replacement Options π
--ignore-insert-conflictβ ignores an insert conflict and keeps on running so it can fix things. Not me being chill about conflict π--remove-change-desc-filesβ removes the change description files no matter what, regardless of whether merging/replacing succeeded. Periodt.
And that's the whole page, bestie π This was clang-apply-replacements 17, dated June 2025 β go forth and apply those replacements, you absolute icon πβ¨
π¦ where this page comes from
- debian trixie: clang-tools-17 1:17.0.6-22+b2 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: clang-tools-17 1:17.0.6-22build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms