CLANG-APPLY-REPLACEMENTS(1)

πŸ“¦ version 11.1.0, in ubuntu jammy

πŸ’– NAME πŸ’–

clang-apply-replacements β€” bestie, this is the manual page for clang-apply-replacements 11 ✨


🌸 DESCRIPTION 🌸

Okay so here's the vibe: this tool takes all those replacement files your clang tooling spat out and actually applies them to your codebase. It goes through your search root, finds the change description files, and merges/replaces stuff. Iconic behaviour, no cap. 🫢

Here's how you call it:

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

OPTIONS: are down below, grouped into their little squads πŸ‘‡


✨ OPTIONS ✨

πŸŽ€ Formatting Options

  • --format β€” turns on formatting for 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> β€” the coding style, and currently the supported ones are: LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.

Use -style=file to load your style config from a .clang-format file that lives in one of the parent directories of the source file β€” or, for stdin, the current directory. πŸ¦‹

And use -style="{key: value, ...}" if you want to set specific parameters, like literally:

-style="{BasedOnStyle: llvm, IndentWidth: 8}"
  • --style-config=<string> β€” the path to a directory containing a .clang-format file. That file describes the formatting style to use for formatting code when you're running -style=file. πŸ“

🌈 Generic Options

  • --help β€” shows you the available options (and --help-hidden if you want even more πŸ‘€)
  • --help-list β€” shows you the list of available options (and --help-list-hidden for more πŸ‘€)
  • --version β€” shows you the version of this program. Hello, 11. 😌

πŸ’œ Replacement Options

  • --remove-change-desc-files β€” removes the change description files, and it does this regardless of whether the merging/replacing actually succeeded. Yes, regardless. Be aware bestie. πŸ’€

That's the whole page, babes. This was clang-apply-replacements 11, dated January 2022 β€” go forth and apply those replacements, you absolute main character. 🧚✨

πŸ“¦ where this page comes from