Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
2b92a491
Commit
2b92a491
authored
Nov 08, 2016
by
Wenzel Jakob
Browse files
updated check-style.sh docs
parent
cc4efe69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tools/check-style.sh
tools/check-style.sh
+3
-1
No files found.
tools/check-style.sh
View file @
2b92a491
...
@@ -7,6 +7,9 @@
...
@@ -7,6 +7,9 @@
# 1. use of tabs instead of spaces
# 1. use of tabs instead of spaces
# 2. trailing spaces
# 2. trailing spaces
# 3. missing space between keyword and parenthesis, e.g.: for(, if(, while(
# 3. missing space between keyword and parenthesis, e.g.: for(, if(, while(
# 4. opening brace on its own line. It should always be on the same line as the
# if/while/for/do statment.
# 5. Missing space between right parenthesis and brace, e.g. 'for (...){'
#
#
# Invoke as: tools/check-style.sh
# Invoke as: tools/check-style.sh
#
#
...
@@ -40,7 +43,6 @@ while read -u 3 f; do
...
@@ -40,7 +43,6 @@ while read -u 3 f; do
done
done
found
=
found
=
# The mt=41 sets a red background for matched tabs:
exec
3< <
(
GREP_COLORS
=
'mt=41'
grep
'^\s*{\s*$'
include/ docs/
*
.rst
-rn
--color
=
always
)
exec
3< <
(
GREP_COLORS
=
'mt=41'
grep
'^\s*{\s*$'
include/ docs/
*
.rst
-rn
--color
=
always
)
while
read
-u
3 f
;
do
while
read
-u
3 f
;
do
if
[
-z
"
$found
"
]
;
then
if
[
-z
"
$found
"
]
;
then
...
...
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