diff --git a/build_tools/check-sources.sh b/build_tools/check-sources.sh index 7e481ff89..588817588 100755 --- a/build_tools/check-sources.sh +++ b/build_tools/check-sources.sh @@ -23,6 +23,14 @@ if [ "$?" != "1" ]; then BAD=1 fi +git grep 'using namespace' -- ':!build_tools' ':!docs' \ + ':!third-party/folly/folly/lang/Align.h' \ + ':!third-party/gtest-1.8.1/fused-src/gtest/gtest.h' +if [ "$?" != "1" ]; then + echo '^^^^ Do not use "using namespace"' + BAD=1 +fi + if [ "$BAD" ]; then exit 1 fi