CLANG-APPLY-REPLACEMENTS(1)

πŸ“¦
version 14.0.6 Β· 5 versions
, in ubuntu questing

πŸ’… NAME πŸ’…

clang-apply-replacements β€” the manual page for clang-apply-replacements 14, aka the little tool that takes your replacement files and actually does something with them 🫢


✨ DESCRIPTION ✨

Okay so here's the vibe. This is how you run it:

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

That <Search Root Directory> is a placeholder, bestie β€” it's the directory it goes hunting in. 🌸

πŸŽ€ OPTIONS πŸŽ€

🌈 Formatting Options 🌈

  • --format β€” turns on formatting for the code that gets changed when replacements are applied. If you want to pick which formatting style, that's what -style is for. ✨
  • --style=<string> β€” your coding style. Right now it supports: LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.

Use -style=file and it'll load the style config from a .clang-format file sitting in one of the parent directories of the source file β€” or, for stdin, from the current directory. πŸ‘‘

Use -style=file:<format_file_path> to explicitly specify the configuration file, no guessing.

Use -style="{key: value, ...}" to set specific parameters yourself, like this:

-style="{BasedOnStyle: llvm, IndentWidth: 8}"
  • --style-config=<string> β€” a path to a directory that has a .clang-format file in it, describing the formatting style to use when you're formatting code and you passed -style=file. πŸ’–

🌸 Generic Options 🌸

  • --help β€” shows you the available options (and --help-hidden shows you even more πŸ‘€)
  • --help-list β€” shows the list of available options (and --help-list-hidden for more πŸ‘€)
  • --version β€” shows the version of this program. iconic.

πŸ¦‹ Replacement Options πŸ¦‹

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

That's the whole page, bestie β€” every flag, every style name, every path, all of it, no cap. πŸŽ€

This was clang-apply-replacements 14, dated May 2025, straight out of the User Commands section of the manual. Go format something pretty. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from