We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a589f53 commit 9d6c9dbCopy full SHA for 9d6c9db
test/lint/lint-includes.sh
@@ -33,6 +33,14 @@ for CPP_FILE in $(filter_suffix cpp); do
33
fi
34
done
35
36
+INCLUDED_CPP_FILES=$(git grep -E "^#include [<\"][^>\"]+\.cpp[>\"]" -- "*.cpp" "*.h")
37
+if [[ ${INCLUDED_CPP_FILES} != "" ]]; then
38
+ echo "The following files #include .cpp files:"
39
+ echo "${INCLUDED_CPP_FILES}"
40
+ echo
41
+ EXIT_CODE=1
42
+fi
43
+
44
EXPECTED_BOOST_INCLUDES=(
45
boost/algorithm/string.hpp
46
boost/algorithm/string/case_conv.hpp
0 commit comments