Skip to content

motherapp/githook-clang-format

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

githook-clang-format

For Objective-C

When committing code, added files will been formatted

auto format code via git-hook(pre-commit)

Install

Install dependence

brew install clang-format

Init pre-commit(git-hook) file

cd $PROJECT
cd .git/hooks
wget https://raw.githubusercontent.com/motherapp/githook-clang-format/master/clang-format.hook -O pre-commit
sudo chmod +x pre-commit

Custom Code Style

Clang Format

Clang Format Style Options

vim .git/hooks/pre-commit

About

Pre-commit hook for running clang-format. Don't use this.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%