Skip to content

Instantly share code, notes, and snippets.

View ymadzhunkov's full-sized avatar

Yordan Madzhunkov ymadzhunkov

View GitHub Profile
@ymadzhunkov
ymadzhunkov / pre-commit-clang-format
Last active June 30, 2017 13:31 — forked from wangkuiyi/pre-commit-clang-format
Git pre-commit hook that invokes clang-format to reformat C/C++/Objective-C source code.
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
##################################################################
# SETTINGS