JSPM

clang-format-ex

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q23537F
  • License MIT

Runs clang-format with Glob support

Package Exports

  • clang-format-ex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clang-format-ex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CLANG FORMAT EXTENDED

NPM License: MIT TypeScript code style: prettier

Install with

  > npm i clang-format-ex -g

Usage

  > clang-format-ex -i .

Replace a call to clang-format with clang-format-ex and see the magic happen

clang-format-ex is also Cross-Platform and works on Linux, Windows, Mac etc.

By default, Clang-Format cannot support globs and cannot be configured to ignore .gitignore or any other folder easily

IGNORE

  1. .gitignore
  2. .clang-format-ignore

Add glob of content to ignore to either of these files

How It Works?

  1. Takes all Globs as Input
  2. Find the names of all files that satisfy the Globs
  3. Perform Clang-Format processing on all these files

Requirements?

  1. Need to have clang-format installed