summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorDaniel Moody <daniel.moody@mongodb.com>2023-01-24 19:48:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-24 22:19:55 +0000
commite60abd0b58694f4c0102a7b6ecd903e4a82d955c (patch)
treefb05f2ed7cf3ed6c0e10fa63aad8157271e969b9 /SConstruct
parente7224e1503d635c72eacd1f2d5eeb5f52e27e6b7 (diff)
downloadmongo-e60abd0b58694f4c0102a7b6ecd903e4a82d955c.tar.gz
SERVER-73124 add modernize-deprecated-headers clang-tidy check.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct13
1 files changed, 13 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index da7173e5390..66bc4a7fe94 100644
--- a/SConstruct
+++ b/SConstruct
@@ -6231,6 +6231,19 @@ def injectModule(env, module, **kwargs):
env.AddMethod(injectModule, 'InjectModule')
+replacements = {
+ '@MONGO_BUILD_DIR@': env.Dir('$BUILD_DIR').path + '/mongo',
+}
+
+clang_tidy_config = env.Substfile(
+ target='.clang-tidy',
+ source=[
+ '.clang-tidy.in',
+ ],
+ SUBST_DICT=replacements,
+)
+env.Alias("generated-sources", clang_tidy_config)
+
if get_option('ninja') == 'disabled':
compileCommands = env.CompilationDatabase('compile_commands.json')
# Initialize generated-sources Alias as a placeholder so that it can be used as a