CLANG-APPLY-REPLACEMENTS(1)
π NAME π
clang-apply-replacements β literally the manual page for clang-apply-replacements 13, bestie. She takes your replacement files and makes them real. Main character energy fr fr. π
β¨ DESCRIPTION β¨
okay so here's the whole vibe, no cap:
USAGE: clang-apply-replacements [options] <Search Root Directory>
That's it, that's the shape of it. You hand her a <Search Root Directory> and some options, and she does the thing. π¦
π OPTIONS π
πΈ Formatting Options
These are the glow-up options. Purely about making your changed code look cute. β¨
--formatβ Enable formatting of code changed by applying replacements. Lowkey the whole point is that your edits come out pretty. Use-styleto choose the formatting style. π--style=<string>β Coding style, currently supports:LLVM,GNU,Google,Chromium,Microsoft,Mozilla,WebKit.
Use -style=file to load style configuration from .clang-format file located in one of the parent directories of the source file (or current directory for stdin). She'll go hunting up the directory tree for you, periodt. π
Use -style="{key: value, ...}" to set specific parameters, e.g.:
-style="{BasedOnStyle: llvm, IndentWidth: 8}"
iykyk β that's how you get exactly the indent width you want. π
--style-config=<string>β Path to a directory containing a.clang-formatfile describing a formatting style to use for formatting code when-style=file. Basically: "bestie, the config lives here." π
π Generic Options
The classics. Every tool has them, and she's no different. π
--helpβ Display available options (--help-hiddenfor more). Yes there's a hidden menu, it's giving secret level. π--help-listβ Display list of available options (--help-list-hiddenfor more). Same deal, but a list. π--versionβ Display the version of this program. Screenshot it, send it to the group chat. π«Ά
π Replacement Options
The serious ones. Handle with care. π₯
--remove-change-desc-filesβ Remove the change description files regardless of successful merging/replacing.
β οΈ Not me warning you β "regardless" means regardless. Those files go bye-bye even if the merge/replace didn't work out. She said no refunds. π
so yeah, that's the whole page. run her, love her, let her format your code. π§
catch you later β this was clang-apply-replacements 13, from July 2023, and you can find the whole fam under CLANG-APPLY-REPLACEMENTS(1). mwah π
π¦ where this page comes from
- ubuntu jammy: clang-tools-13 1:13.0.1-2ubuntu2.2 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms