Add support for uncrustify to fix tabbing
authorbdemsky <bdemsky@uci.edu>
Thu, 15 Dec 2016 06:04:16 +0000 (22:04 -0800)
committerbdemsky <bdemsky@uci.edu>
Thu, 15 Dec 2016 06:04:16 +0000 (22:04 -0800)
C.cfg [new file with mode: 0644]
Makefile

diff --git a/C.cfg b/C.cfg
new file mode 100644 (file)
index 0000000..a464e72
--- /dev/null
+++ b/C.cfg
@@ -0,0 +1,13 @@
+indent_with_tabs = 2
+indent_cmt_with_tabs = True
+indent_columns = 2
+indent_class = True
+output_tab_size = 2
+nl_func_leave_one_liners = True
+sp_after_semi = Ignore
+sp_after_semi_for = Remove
+sp_before_semi_for = Ignore
+sp_special_semi                           = ignore
+sp_before_semi                            = ignore
+sp_before_semi_for_empty                  = ignore
+sp_after_semi_for_empty                   = ignore
index 639f51a..a5eb60f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -87,6 +87,10 @@ tests: $(LIB_SO)
 PHONY += pdfs
 pdfs: $(patsubst %.dot,%.pdf,$(wildcard *.dot))
 
+tabbing:
+       uncrustify -c C.cfg --no-backup *.cc
+       uncrustify -c C.cfg --no-backup *.h
+
 .PHONY: $(PHONY)
 
 # A 1-inch margin PDF generated by 'pandoc'