CLANG-APPLY-REPLACEMENTS(1)

πŸ“¦
version 18.1.8 Β· 5 versions
, in debian trixie, ubuntu questing

πŸ’– NAME πŸ’–

clang-apply-replacements β€” this is the manual page for clang-apply-replacements 18, bestie. That's the whole vibe. 🫢


✨ DESCRIPTION ✨

Okay so here's the whole thing β€” how you actually run it:

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

That's it, that's the entry point. Give it a <Search Root Directory> and some options and it goes to work. πŸ’…

And now… the options. All of them. No skips. Let's get into it. πŸ”₯

πŸŽ€ OPTIONS πŸŽ€

🌸 Formatting Options 🌸

  • --format β€” turns on formatting of the code that got changed by applying replacements. If you wanna pick which style, use -style for that. ✨
  • --style=<string> β€” sets the coding style, and <string> can be literally any one of these:
    1. A preset: LLVM, GNU, Google, Chromium, Microsoft, Mozilla, WebKit.
    2. 'file' to load the style configuration from a .clang-format file in one of the parent directories of the source file (and for stdin, see --assume-filename). If there's no .clang-format file found anywhere, it falls back to --fallback-style. Also, fyi, --style=file is the default. πŸ‘‘
    3. 'file:<format_file_path>' to explicitly specify the configuration file.
    4. "{key: value, ...}" to set specific parameters, e.g.:
--style="{BasedOnStyle: llvm, IndentWidth: 8}"
  • --style-config=<string> β€” path to a directory that contains a .clang-format file, which describes the formatting style to use for formatting code when you're running -style=file. 🌷

🌈 Generic Options 🌈

  • --help β€” display the available options (and there's --help-hidden if you want more, nosey bestie πŸ‘€).
  • --help-list β€” display the list of available options (and --help-list-hidden for more).
  • --version β€” display the version of this program. πŸ’«

πŸ‘‘ Replacement Options πŸ‘‘

  • --ignore-insert-conflict β€” ignore the insert conflict and keep running so it can fix things. She's resilient like that. πŸ¦‹
  • --remove-change-desc-files β€” remove the change description files regardless of successful merging/replacing. Like, no matter how it went, those files are gone. 😭

Real talk, bestie: every flag above is doing exactly what it says and nothing extra. Don't go inventing behaviour, iykyk. πŸ™ˆ

And that's the whole page!! This was clang-apply-replacements 18, dated June 2025, and the page itself is CLANG-APPLY-REPLACEMENTS(1) β€” go forth and apply those replacements, you absolute icon. πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from