CLANG-APPLY-REPLACEMENTS(1)
π NAME π
clang-apply-replacements β this is the manual page for clang-apply-replacements 18, bestie. That's the whole vibe. π«Ά
β¨ DESCRIPTION β¨
Okay so here's the whole thing β how you actually run it:
USAGE: clang-apply-replacements [options] <Search Root Directory>
That's it, that's the entry point. Give it a <Search Root Directory> and some options and it goes to work. π
And nowβ¦ the options. All of them. No skips. Let's get into it. π₯
π OPTIONS π
πΈ Formatting Options πΈ
--formatβ turns on formatting of the code that got changed by applying replacements. If you wanna pick which style, use-stylefor that. β¨--style=<string>β sets the coding style, and<string>can be literally any one of these:- A preset:
LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit. 'file'to load the style configuration from a.clang-formatfile in one of the parent directories of the source file (and for stdin, see--assume-filename). If there's no.clang-formatfile found anywhere, it falls back to--fallback-style. Also, fyi,--style=fileis the default. π'file:<format_file_path>'to explicitly specify the configuration file."{key: value, ...}"to set specific parameters, e.g.:
- A preset:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
--style-config=<string>β path to a directory that contains a.clang-formatfile, which describes the formatting style to use for formatting code when you're running-style=file. π·
π Generic Options π
--helpβ display the available options (and there's--help-hiddenif you want more, nosey bestie π).--help-listβ display the list of available options (and--help-list-hiddenfor more).--versionβ display the version of this program. π«
π Replacement Options π
--ignore-insert-conflictβ ignore the insert conflict and keep running so it can fix things. She's resilient like that. π¦--remove-change-desc-filesβ remove the change description files regardless of successful merging/replacing. Like, no matter how it went, those files are gone. π
Real talk, bestie: every flag above is doing exactly what it says and nothing extra. Don't go inventing behaviour, iykyk. π
And that's the whole page!! This was clang-apply-replacements 18, dated June 2025, and the page itself is CLANG-APPLY-REPLACEMENTS(1) β go forth and apply those replacements, you absolute icon. ππβ
π¦ where this page comes from
- debian trixie: clang-tools-18 1:18.1.8-18+b1 Β· APACHE-2-LLVM-EXCEPTIONS
- ubuntu questing: clang-tools-18 1:18.1.8-18ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms