CLANG-APPLY-REPLACEMENTS(1)
π CLANG-APPLY-REPLACEMENTS π
okay bestie, sit down, hydrate, because we're talking about clang-apply-replacements β the manual page for clang-apply-replacements 16. yes, that's the whole name, she's not subtle, she's iconic for it. π«Ά
β¨ NAME β¨
clang-apply-replacements β literally the manual page for clang-apply-replacements 16. that's it, that's the name, no notes. π
πΈ DESCRIPTION πΈ
here's how you call her, fr fr:
USAGE: clang-apply-replacements [options] <Search Root Directory>
and then she justβ¦ gives you options. so many options. let's get into it, no cap. π¦
π OPTIONS π
π Formatting Options π
--formatβ turns on formatting of the code that got changed by applying replacements. the way that you then need-styleto actually pick a formatting styleβ¦ yeah, it's giving "one thing at a time." β¨--style=<string>β sets the coding style, and <string> can be a whole bunch of things, so buckle up:- a preset, and 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 (for stdin, peep--assume-filename). and if there's no.clang-formatfile anywhere? she falls back to--fallback-style. also heads up:--style=fileis the default. periodt.'file:<format_file_path>'β when you wanna explicitly specify the configuration file, no guessing, no searching, just vibes with a path. π§"{key: value, ...}"β set specific parameters yourself, like:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
--style-config=<string>β the path to a directory that contains a.clang-formatfile, and that file describes the formatting style to use for formatting code when you're doing-style=file. lowkey a lil helper for the file-style girlies. π
π Generic Options π
--helpβ displays the available options (and there's--help-hiddenfor even more, if you're nosy like me π).--help-listβ displays a list of available options (--help-list-hiddenfor more, same energy, different layout). β--versionβ displays the version of this program. short, sweet, main character. π
π Replacement Options π
--ignore-insert-conflictβ ignores insert conflicts and keeps running to fix. it's giving "we don't stop, we don't quit." π₯--remove-change-desc-filesβ removes the change description files regardless of successful merging/replacing. yes, regardless β she's not checking, she's just deleting. π
heads up bestie: those last two do exactly what they say on the tin, so read them twice before you run them. π«Ά
and that's the whole page, no crumbs left. this was clang-apply-replacements 16, dated October 2023 β go forth and apply your replacements, you absolute legend. bye bestie! πβ¨πΈπ¦
π¦ where this page comes from
- debian bookworm: clang-tools-16 1:16.0.6-15~deb12u1 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms