Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
e6c7f2e0
Commit
e6c7f2e0
authored
Mar 16, 2015
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak to reformat tool
parent
c3f2c08e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
doc/BUILD_STEPS
doc/BUILD_STEPS
+9
-0
reformat.sh
reformat.sh
+6
-1
No files found.
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