Permalink
Browse files

Add a rule to reformat code

Change-Id: I5dd4193505c1691d6a74aa52f291f502721cec71
Reviewed-on: http://review.couchbase.org/19290
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information...
1 parent f3cca36 commit 9ce8dae874ac3551208257496fc8203609aef621 @trondn trondn committed with ingenthr Aug 6, 2012
Showing with 493 additions and 418 deletions.
  1. +20 −0 Makefile.am
  2. +113 −93 libmemc.c
  3. +2 −2 libmemc.h
  4. +277 −253 main.c
  5. +34 −30 metrics.c
  6. +22 −20 metrics.h
  7. +21 −18 timer.c
  8. +4 −2 vbucket.c
View
@@ -12,3 +12,23 @@ memcachetest_SOURCES = \
vbucket.c vbucket.h
memcachetest_LDADD = $(LTLIBMEMCACHED) $(LTLIBVBUCKET) $(LTLIBCOUCHBASE) $(LTLIBEVENT)
+reformat:
+ astyle --mode=c \
+ --quiet \
+ --style=1tbs \
+ --indent=spaces=4 \
+ --indent-namespaces \
+ --indent-col1-comments \
+ --max-instatement-indent=78 \
+ --pad-oper \
+ --pad-header \
+ --add-brackets \
+ --unpad-paren \
+ --align-pointer=name \
+ --align-reference=name \
+ $(top_srcdir)/libmemc.[ch] \
+ $(top_srcdir)/main.c \
+ $(top_srcdir)/memcachetest.h \
+ $(top_srcdir)/metrics.[ch] \
+ $(top_srcdir)/timer.c \
+ $(top_srcdir)/vbucket.[ch]
Oops, something went wrong.

0 comments on commit 9ce8dae

Please sign in to comment.