Skip to content

Instantly share code, notes, and snippets.

View pre-commit-clang-format
#!/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
# modifications for clang-format by rene.milk@wwu.de
# This file is part of a set of unofficial pre-commit hooks available
# at github.
View GetNetworkOpt-tests.c
#include <3ds.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h> // memset
#include <malloc.h> // memalign
#include <unistd.h> // close
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
@Lectem
Lectem / .clang-format
Last active Oct 3, 2015
ctrulib guide style draft
View .clang-format
---
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
IndentCaseLabels: true
AlignConsecutiveAssignments: true
AlignEscapedNewlinesLeft: true
AlignOperands: true
You can’t perform that action at this time.