https://github.com/pratikpc/clang-format-ex
Extends Clang-Format to Add Support for Blobs passed as params
https://github.com/pratikpc/clang-format-ex
Last synced: 26 days ago
JSON representation
Extends Clang-Format to Add Support for Blobs passed as params
- Host: GitHub
- URL: https://github.com/pratikpc/clang-format-ex
- Owner: pratikpc
- License: mit
- Created: 2020-09-18T01:01:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T09:03:00.000Z (almost 6 years ago)
- Last Synced: 2025-12-01T20:55:02.516Z (8 months ago)
- Language: TypeScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CLANG FORMAT EXTENDED
[](https://www.npmjs.com/package/clang-format-ex) [](/LICENSE.md) [](http://www.typescriptlang.org/) [](https://github.com/prettier/prettier)
## Install with
```cmd
> npm i clang-format-ex -g
```
## Usage
```cmd
> 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](https://git-scm.com/docs/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