CLANG-APPLY-REPLACEMENTS(1)
π NAME π
clang-apply-replacements β bestie, it's the manual page for clang-apply-replacements 20, and yes we are reading the whole thing together, no skimming β¨
πΈ DESCRIPTION πΈ
okay so, here's the whole vibe:
USAGE: clang-apply-replacements [options] <Search Root Directory>
OPTIONS: are giving main character energy, so let's go π
π Formatting Options π
--formatβ turns on formatting for any code that got changed by applying replacements. and like, if you wanna pick how it formats, you use-stylefor that π--style=<string>β sets the coding style, and<string>can be any of these four things, no cap:- a preset, and the presets are:
LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit. 'file'β this loads the style config straight out of a.clang-formatfile sitting in one of the parent directories of the source file (and for stdin, check--assume-filenamebtw). if there's literally no.clang-formatfile to be found anywhere, it falls back to--fallback-style. also important:--style=fileis the default, periodt.'file:<format_file_path>'β this one lets you point at the config file explicitly, like you're naming names π«Ά"{key: value, ...}"β set specific parameters yourself, for example:
- a preset, and the presets 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 with-style=file. iykyk π
β¨ Generic Options β¨
--helpβ shows you the available options (and if you want even more, there's--help-hiddenπ)--help-listβ shows you the list of available options (and again,--help-list-hiddenfor more)--versionβ displays the version of this program β
π¦ Replacement Options π¦
--ignore-insert-conflictβ ignores the insert conflict and just keeps running so it can fix stuff. literally refusing to let the drama stop her π--remove-change-desc-filesβ removes the change description files regardless of whether the merging/replacing actually succeeded. yes, regardless. she does not check first π
ngl bestie, that last one is doing the most β it deletes those files no matter what went down, so know that going in.
and that's the whole page, mwah π this was clang-apply-replacements version 20, documented back in September 2026, from the CLANG-APPLY-REPLACEMENTS(1) era of the manual β stay iconic, go fix some code, and don't forget the <Search Root Directory> πβ¨
π¦ where this page comes from
- ubuntu stonking: clang-tools-20 1:20.1.8-2ubuntu13 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms