Skip to content

Commit

Permalink
add source code formatting option
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed May 20, 2022
1 parent f3beb75 commit aff8ff0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,29 @@ cudasdk:
echo "Please first install CUDA SDK and add the path to nvcc to your PATH environment variable."; exit 1;\
fi

pretty:
astyle \
--style=attach \
--indent=spaces=4 \
--indent-modifiers \
--indent-switches \
--indent-preproc-block \
--indent-preproc-define \
--indent-col1-comments \
--pad-oper \
--pad-header \
--align-pointer=type \
--align-reference=type \
--add-brackets \
--convert-tabs \
--close-templates \
--lineend=linux \
--preserve-date \
--suffix=none \
--formatted \
--break-blocks \
--exclude=mcx_bench.c \
*.c *.h *.cpp *.cu

.DEFAULT_GOAL := all

0 comments on commit aff8ff0

Please sign in to comment.