Clang formatter

Description

Task to process clang-format, the clang formatter (see: npmjs.com/clang-format).

Installation

Please install:
$ 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

/!\ clangformat must be installed on the system and set up in the PATH.

<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>