CLANG-APPLY-REPLACEMENTS(1)

πŸ“¦
version 16.0.6 Β· 2 versions
, in debian bookworm

πŸ’– 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 -style to 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:
    1. a preset, and 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 (for stdin, peep --assume-filename). and if there's no .clang-format file anywhere? she falls back to --fallback-style. also heads up: --style=file is the default. periodt.
    3. 'file:<format_file_path>' β€” when you wanna explicitly specify the configuration file, no guessing, no searching, just vibes with a path. 🧚
    4. "{key: value, ...}" β€” set specific parameters yourself, like:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
  • --style-config=<string> β€” the path to a directory that contains a .clang-format file, 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-hidden for even more, if you're nosy like me πŸ™ˆ).
  • --help-list β€” displays a list of available options (--help-list-hidden for 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