CLANG-APPLY-REPLACEMENTS(1)
π CLANG-APPLY-REPLACEMENTS(1) π
okay bestie, welcome to the manual page for clang-apply-replacements, version 12 β¨ this is a User Commands kinda situation and honestly? it's giving tool-that-applies-your-replacements-and-then-formats-the-glow-up. let's get into it π«Ά
πΈ DESCRIPTION πΈ
so here's the vibe β the usage is literally:
clang-apply-replacements [options] <Search Root Directory>
that's it, that's the whole entrance exam π you hand it a Search Root Directory and some options and it does its thing.
β¨ OPTIONS β¨
π Formatting Options
--formatβ turns on formatting of the code that got changed by applying replacements. if you want to pick how it formats, use-style. slay.--style=<string>β the coding style, and currently the ones it supports are:LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit. pick your fighter π
use -style=file and it'll load the style config from a .clang-format file sitting in one of the parent directories of the source file (or the current directory, if you're doing stdin). and if you wanna set specific parameters, do -style="{key: value, ...}", like for example:
-style="{BasedOnStyle: llvm, IndentWidth: 8}"
periodt π
--style-config=<string>β path to a directory that contains a.clang-formatfile, and that file describes the formatting style to use for formatting code when you're in-style=filemode. lowkey essential if you're being picky about your style file's location π¦
π Generic Options
--helpβ displays all the available options (and if you want even more, there's--help-hiddenfor that π)--help-listβ displays a list of the available options (again,--help-list-hiddenexists if you're nosy)--versionβ displays the version of this program. iconique β
π Replacement Options
--remove-change-desc-filesβ removes the change description files, no matter whether the merging/replacing actually succeeded. no cap, it does not care how it went β the files are gone π«£
okay quick reminder bestie: that last one removes the files regardless of successful merging/replacing, so don't come crying to me if you wanted those change description files back π
and that's the whole page! this was the manual for clang-apply-replacements 12, dated February 2022, and it lives at CLANG-APPLY-REPLACEMENTS(1). go format something gorgeous, you main character π§π
π¦ where this page comes from
- ubuntu jammy: clang-tools-12 1:12.0.1-19ubuntu3 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms