Clang formatter task
Clang formatter task
Description
Task to process clang-format, the clang formatter (see: npmjs.com/clang-format ).
Installation
$ npm install -g clang-format
Typescript task parameters
Attribute | Description | Value | Required |
---|---|---|---|
file | typescript file | yes, if no fileset | |
fileset | typescript input files | yes, if no file |
Examples
<project name="clangformat task">
<taskdef name="clangformat"
classname="net.sourceforge.ant4x.taskdefs.qa.ClangFormatTask"
classpath="PATH/TO/ant4x.jar"/>
<target name="clangformat">
<clangformat file="typescript.ts"/>
</target>
</project>