add uncrustify option
authorbdemsky <bdemsky@uci.edu>
Thu, 6 Jun 2019 05:32:30 +0000 (22:32 -0700)
committerbdemsky <bdemsky@uci.edu>
Thu, 6 Jun 2019 05:32:30 +0000 (22:32 -0700)
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 5411f58..20e4d57 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,3 +88,7 @@ pdfs: $(patsubst %.dot,%.pdf,$(wildcard *.dot))
 # A 1-inch margin PDF generated by 'pandoc'
 %.pdf: %.md
        pandoc -o $@ $< -V header-includes='\usepackage[margin=1in]{geometry}'
+
+tabbing:
+       uncrustify -c C.cfg --no-backup *.cc
+       uncrustify -c C.cfg --no-backup *.h