ClangFormat Beautifier
About
ClangFormat beautifier for Unibeautify
Package | Docs | Latest |
---|---|---|
@unibeautify/beautifier-clang-format | v0.2.0 | |
unibeautify | v0.17.0 |
Prerequisites
Please install the following prerequisites:
Install
Install with npm
:
npm install --save-dev unibeautify @unibeautify/beautifier-clang-format
Or with yarn
:
yarn add --dev unibeautify @unibeautify/beautifier-clang-format
Usage
Add ClangFormat
to beautifiers
language option.
A .unibeautifyrc.json
file would look like the following:
{
"LANGUAGE_NAME": {
"beautifiers": [
"ClangFormat"
]
}
}
Note: The
LANGUAGE_NAME
should be replaced with your desired supported language name, such asC
,C++
,Java
, etc.
Advanced
The following beautifier option(s) are supported:
prefer_beautifier_config
See beautifier options docs for more information.
Options
No configuration options are supported. The following languages are supported without options: C, C++, Java, Objective-C.