CLANG-APPLY-REPLACEMENTS(1)
β¨ clang-apply-replacements β¨
okay bestie, welcome to the manual page for clang-apply-replacements β that's the clang-apply-replacements from the User Commands crew, version 22. she's the girl who takes your replacement files and actually applies them. no cap. let's get into it π
π NAME π
clang-apply-replacements β bestie applies your replacements. that's the whole vibe. π
πΈ DESCRIPTION πΈ
here's how you summon her:
USAGE: clang-apply-replacements [options] <Search Root Directory>
so like, you give her a Search Root Directory and some options, and she does her thing. iconic.
then, the options. all of them. buckle up babes π¦
OPTIONS:
β¨ Formatting Options β¨
the glow-up section. this is where she makes your code pretty π
--formatβ turns on formatting of the code that got changed by applying replacements. yep, she'll fix the vibes of anything she touched. if you wanna pick which style she uses, say hi to-style. π--style=<string>β sets the coding style. and<string>can be, in order:- A preset. the presets are:
LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit. pick your fighter π 'file'β loads the style config from a.clang-formatfile sitting in one of the parent directories of the source file (and if you're on stdin, see--assume-filename). if no.clang-formatfile turns up anywhere, she falls back to--fallback-style. btw--style=fileis the default, so that's just her natural state. periodt.'file:<format_file_path>'β when you wanna be explicit about which config file. main character energy: you point, she obeys. π―"{key: value, ...}"β set specific parameters inline, like this:
- A preset. the presets are:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
--style-config=<string>β path to a directory containing a.clang-formatfile that describes the formatting style she should use for formatting code when you're running-style=file. lowkey essential if you want say in the matter π«Ά
π Generic Options π
the classic girlies. every CLI has them, and honestly? we love consistency.
--helpβ displays the available options. (there's also--help-hiddenif you want more π)--help-listβ displays the list of available options. (and yes,--help-list-hiddenexists too for the extra more)--versionβ displays the version of this program. so you can be like "what version are you" and she'll tell you π
π Replacement Options π
the actual replacement behavior section. this is her whole job fr fr.
--ignore-insert-conflictβ ignores the insert conflict and keeps running so she can fix it. she's not gonna stop for drama, she's gonna push through. π₯--remove-change-desc-filesβ removes the change description files regardless of whether the merging/replacing was successful. like, she's cleaning up no matter what happened. no notes, just vibes π
heads up bestie: that last one means the change description files are gone even if the merge/replace did not go well, so don't come for her later π
and that's the whole page!! she's clang-apply-replacements 22, she hangs out in User Commands, and this edition is dated September 2026. go forth and apply those replacements, queen πππ¦β¨
π¦ where this page comes from
- ubuntu stonking: clang-tools-22 1:22.1.8-1ubuntu1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms