about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-08-30 12:17:34 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-08-30 12:17:34 +0200
commitbbd9441fc67fd969c111fdc1a9828d95adb71a30 (patch)
treeb76cafe19f0444a0b0e109c0b23514bf9ceb113b
parent22454ce60b0253a6de260375c904895cd0efd1bc (diff)
downloadafl++-bbd9441fc67fd969c111fdc1a9828d95adb71a30.tar.gz
code-format in Makefile
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9699a0ad..afe745e1 100644
--- a/Makefile
+++ b/Makefile
@@ -156,6 +156,23 @@ afl-gotcpu: src/afl-gotcpu.c $(COMM_HDR) | test_x86
 	$(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS)
 
 
+code-format:
+	./.custom-format.py -i src/*
+	./.custom-format.py -i include/*
+	./.custom-format.py -i libdislocator/*.c 
+	./.custom-format.py -i libtokencap/*.c 
+	./.custom-format.py -i llvm_mode/*.c
+	./.custom-format.py -i llvm_mode/*.h
+	./.custom-format.py -i llvm_mode/*.cc
+	./.custom-format.py -i qemu_mode/patches/*.h
+	./.custom-format.py -i qemu_mode/libcompcov/*.c
+	./.custom-format.py -i qemu_mode/libcompcov/*.cc
+	./.custom-format.py -i qemu_mode/libcompcov/*.h
+	./.custom-format.py -i unicorn_mode/patches/*.h
+	./.custom-format.py -i *.h
+	./.custom-format.py -i *.c
+
+
 ifndef AFL_NO_X86
 
 test_build: afl-gcc afl-as afl-showmap