CLANG-APPLY-REPLACEMENTS(1)
π 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-styleis 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-formatfile 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-hiddenshows you even more π)--help-listβ shows the list of available options (and--help-list-hiddenfor 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
- ubuntu questing: clang-tools-14 1:14.0.6-20ubuntu3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms