CLANG-APPLY-REPLACEMENTS(1)

πŸ“¦
version 17.0.6 Β· 4 versions
, in debian trixie, ubuntu questing

✨ NAME ✨

clang-apply-replacements β€” bestie, this is the manual page for clang-apply-replacements 17, and it lives in the User Commands corner of the man universe πŸ’…


🌸 DESCRIPTION 🌸

Okay so here's the vibe. You run it like this:

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

That's it. That's the whole entrance. Now let's get into the options, because there are a few and they all matter 🫢

πŸŽ€ OPTIONS πŸŽ€

πŸ’– Formatting Options πŸ’–

  • --format β€” turns on formatting of the code that got changed by applying replacements. If you want to pick which style it uses, go hand that job to -style.
  • --style=<string> β€” sets the coding style. Now, <string> is giving "I contain multitudes," because it can be any one of these four things:
    1. A preset, and the presets on the menu are: LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.
    2. 'file' β€” loads the style config from a .clang-format file in one of the parent directories of the source file (and for stdin, see --assume-filename, iykyk). If there's no .clang-format file to be found anywhere, it falls back to --fallback-style. Also, heads up: --style=file is the default, so this is the one you're getting unless you say otherwise.
    3. 'file:<format_file_path>' β€” when you want to explicitly point at the configuration file, no searching, no guessing, just the exact path.
    4. "{key: value, ...}" β€” for setting specific parameters by hand, like so:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
  • --style-config=<string> β€” a 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 running -style=file.

⭐ Generic Options ⭐

  • --help β€” displays the available options. And if you want the hidden ones too, --help-hidden is right there.
  • --help-list β€” displays the list of available options. Same deal: --help-list-hidden exists for the secret menu.
  • --version β€” displays the version of this program. Iconic of it, honestly.

🌈 Replacement Options 🌈

  • --ignore-insert-conflict β€” ignores an insert conflict and keeps on running so it can fix things. Not me being chill about conflict πŸ’€
  • --remove-change-desc-files β€” removes the change description files no matter what, regardless of whether merging/replacing succeeded. Periodt.

And that's the whole page, bestie πŸ’œ This was clang-apply-replacements 17, dated June 2025 β€” go forth and apply those replacements, you absolute icon πŸ‘‘βœ¨

πŸ“¦ where this page comes from