CLANG-APPLY-REPLACEMENTS(1)
π clang-apply-replacements β NAME β¨
okay bestie, so this is the manual page for clang-apply-replacements 19 and honestly? it's giving "quiet little tool that does SO much". let's get into it π«Ά
πΈ DESCRIPTION πΈ
here's the whole vibe, exactly as it comes:
USAGE: clang-apply-replacements [options] <Search Root Directory>
that <Search Root Directory>? yeah, that's the main character. it's where she goes looking for stuff to fix. and [options] is all the lil knobs and switches you get to play with π
β¨ OPTIONS β¨
π Formatting Options
--formatβ turns ON formatting for code that got changed by applying replacements. so if you want your freshly-replaced code to also be pretty, this is your girl. heads up though: use-styleto actually choose which formatting style you want π--style=<string>β sets the coding style. and<string>can be one of these four things, no cap:- a preset, and the presets are:
LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit. pick your fighter β¨ 'file'β this one loads the style config from a.clang-formatfile sitting in one of the parent directories of the source file (and for stdin, see--assume-filename). if it can't find a.clang-formatfile at all, it falls back to--fallback-style. also FYI,--style=fileis the default, so if you don't say anything, that's what you get π¦'file:<format_file_path>'β when you wanna be extra specific and point directly at the config file yourself."{key: value, ...}"β for setting specific parameters inline, like literally this:
- a preset, and the presets are:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
custom everything, we love to see it π
--style-config=<string>β path to a directory that contains a.clang-formatfile, which describes a formatting style to use when you're formatting code and you've got-style=filegoing. think of it as "where do I even find the vibe file" π§
π Generic Options
--helpβ displays the available options. and if you want even MORE (greedy, iconic), there's--help-hiddenπ--help-listβ displays a list of the available options. and yes, there's a--help-list-hiddenfor more, because of course there is π--versionβ displays the version of this program. short, sweet, does exactly what it says on the tin β
π Replacement Options
--ignore-insert-conflictβ ignores an insert conflict and just keeps running so it can fix. she does NOT have time for drama, she's moving on π--remove-change-desc-filesβ removes the change description files, and it does this regardless of successful merging/replacing. so yeah, no matter how the merge or replace went, those files are GONE. periodt π₯
okay a lil gentle reminder bestie: that --remove-change-desc-files one means what it means β it doesn't care if the merging or replacing actually worked out. files get removed either way, so don't come for me later π
and that's the whole page, you ate it π this was clang-apply-replacements 19, dated June 2025, from the User Commands corner of the world. go forth and replace some things, bestie ππ¦β¨
π¦ where this page comes from
- debian bookworm: clang-tools-19 1:19.1.7-3~deb12u1 Β· APACHE-2-LLVM-EXCEPTIONS
- debian trixie: clang-tools-19 1:19.1.7-3+b1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms