Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
e6c7f2e0
Commit
e6c7f2e0
authored
Mar 16, 2015
by
Jonathan Jenkins
Browse files
tweak to reformat tool
parent
c3f2c08e
Changes
2
Hide whitespace changes
Inline
Side-by-side
doc/BUILD_STEPS
View file @
e6c7f2e0
...
...
@@ -67,3 +67,12 @@ Notes on using the clang static analyzer
- edit Makefile, and delete the "CC = mpicc" (or similar) line
- run "scan-build --use-cc=mpicc make"
Notes on using uncrustify
-----------------
- version 0.61 is required
- build/install uncrustify from your favorite distro (0.61), OR download from
https://github.com/bengardner/uncrustify and build from source
(configure --prefix /path/to/install && make && make install)
- either use uncrustify directly (see uncrustify --help) or use the provided
reformat.sh tool which is a shim over some of the options (see reformat.sh
-h)
reformat.sh
View file @
e6c7f2e0
...
...
@@ -18,6 +18,7 @@ USAGE: reformat.sh [-x] [-i] [-c CFG] [-b FILE] {-a | FILE...}
-a: perform recursively on all files ending in .c or .h
if -a not provided, then perform on all files passed in
-x: instead of formatting, check if output format is the same as input
-h: show this help and exit
EOF
}
...
...
@@ -40,7 +41,7 @@ do_recursive=no
do_check
=
no
blacklist
=
while
getopts
":ib:ax"
opt
;
do
while
getopts
":ib:ax
h
"
opt
;
do
case
$opt
in
i
)
do_inplace
=
yes
...
...
@@ -57,6 +58,10 @@ while getopts ":ib:ax" opt; do
x
)
do_check
=
yes
;;
h
)
usage
exit
1
;;
\?
)
usage
error
"invalid argument: -
$OPTARG
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment