From 314a22e93f283ab80e650618cbd3ed8babb8510f Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Thu, 11 Jun 2015 13:55:22 -0400 Subject: SERVER-18579: Add .clang-format & Scons support (cherry picked from commit e484264ed64dfbe71be222b4be91d57e364e7a8c) --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 1ba1ef9b129..0dc27b7aae3 100644 --- a/SConstruct +++ b/SConstruct @@ -2360,6 +2360,10 @@ env.AlwaysBuild( "style" ) def doLint( env , target , source ): + import buildscripts.clang_format + if not buildscripts.clang_format.lint(None, []): + raise Exception("clang-format lint errors") + import buildscripts.lint if not buildscripts.lint.run_lint( [ "src/mongo/" ] ): raise Exception( "lint errors" ) -- cgit v1.2.1