File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ EXCLUDE_FILES=(
20
20
EXCLUDE_FILES_JOINED=$( printf " %s\|" " ${EXCLUDE_FILES[@]} " )
21
21
EXCLUDE_FILES_JOINED=${EXCLUDE_FILES_JOINED% ??}
22
22
23
+ NAMESPACE_STD_FREE_FILES=(
24
+ libevmasm/*
25
+ )
26
+
23
27
(
24
28
REPO_ROOT=" $( dirname " $0 " ) " /..
25
29
cd " $REPO_ROOT " || exit 1
@@ -58,6 +62,9 @@ FORMATERROR=$(
58
62
# unqualified move()/forward() checks, i.e. make sure that std::move() and std::forward() are used instead of move() and forward()
59
63
preparedGrep " move\(.+\)" | grep -v " std::move" | grep -E " [^a-z]move"
60
64
preparedGrep " forward\(.+\)" | grep -v " std::forward" | grep -E " [^a-z]forward"
65
+ # make sure `using namespace std` is not used in INCLUDE_DIRECTORIES
66
+ # shellcheck disable=SC2068,SC2068
67
+ grep -nIE -d skip " using namespace std;" ${NAMESPACE_STD_FREE_FILES[@]}
61
68
) | grep -E -v -e " ^[a-zA-Z\./]*:[0-9]*:\s*\/(\/|\*)" -e " ^test/" || true
62
69
)
63
70
You can’t perform that action at this time.
0 commit comments