CLANG-APPLY-REPLACEMENTS(1)

πŸ“¦
version 22.1.8 Β· 3 versions
, in ubuntu stonking

✨ clang-apply-replacements ✨

okay bestie, welcome to the manual page for clang-apply-replacements β€” that's the clang-apply-replacements from the User Commands crew, version 22. she's the girl who takes your replacement files and actually applies them. no cap. let's get into it πŸ’…


πŸ’– NAME πŸ’–

clang-apply-replacements β€” bestie applies your replacements. that's the whole vibe. πŸŽ€


🌸 DESCRIPTION 🌸

here's how you summon her:

USAGE: clang-apply-replacements [options] <Search Root Directory>

so like, you give her a Search Root Directory and some options, and she does her thing. iconic.

then, the options. all of them. buckle up babes πŸ¦‹

OPTIONS:


✨ Formatting Options ✨

the glow-up section. this is where she makes your code pretty πŸ’–

  • --format β€” turns on formatting of the code that got changed by applying replacements. yep, she'll fix the vibes of anything she touched. if you wanna pick which style she uses, say hi to -style. πŸ’…
  • --style=<string> β€” sets the coding style. and <string> can be, in order:
    1. A preset. the presets are: LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit. pick your fighter πŸ‘‘
    2. 'file' β€” loads the style config from a .clang-format file sitting in one of the parent directories of the source file (and if you're on stdin, see --assume-filename). if no .clang-format file turns up anywhere, she falls back to --fallback-style. btw --style=file is the default, so that's just her natural state. periodt.
    3. 'file:<format_file_path>' β€” when you wanna be explicit about which config file. main character energy: you point, she obeys. 🎯
    4. "{key: value, ...}" β€” set specific parameters inline, like this:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
  • --style-config=<string> β€” path to a directory containing a .clang-format file that describes the formatting style she should use for formatting code when you're running -style=file. lowkey essential if you want say in the matter 🫢

🌈 Generic Options 🌈

the classic girlies. every CLI has them, and honestly? we love consistency.

  • --help β€” displays the available options. (there's also --help-hidden if you want more πŸ‘€)
  • --help-list β€” displays the list of available options. (and yes, --help-list-hidden exists too for the extra more)
  • --version β€” displays the version of this program. so you can be like "what version are you" and she'll tell you πŸ’œ

πŸ“ Replacement Options πŸ“

the actual replacement behavior section. this is her whole job fr fr.

  • --ignore-insert-conflict β€” ignores the insert conflict and keeps running so she can fix it. she's not gonna stop for drama, she's gonna push through. πŸ”₯
  • --remove-change-desc-files β€” removes the change description files regardless of whether the merging/replacing was successful. like, she's cleaning up no matter what happened. no notes, just vibes πŸ’€

heads up bestie: that last one means the change description files are gone even if the merge/replace did not go well, so don't come for her later πŸ™ˆ

and that's the whole page!! she's clang-apply-replacements 22, she hangs out in User Commands, and this edition is dated September 2026. go forth and apply those replacements, queen πŸ‘‘πŸ’–πŸ¦‹βœ¨

πŸ“¦ where this page comes from