CLANG-APPLY-REPLACEMENTS(1)

πŸ“¦
version 13.0.1 Β· 3 versions
, in ubuntu jammy

πŸ’… 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 -style to 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-format file 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-hidden for more). Yes there's a hidden menu, it's giving secret level. πŸ’€
  • --help-list β€” Display list of available options (--help-list-hidden for 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