add pre-commit hook to check c++ style using cpplint