diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py index b04bac3f1792..0d499e98dcc6 100644 --- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py +++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py @@ -952,7 +952,7 @@ class StaticAnalysis(MachCommandBase): common_args = ['-clang-tidy-binary', self._clang_tidy_path, '-clang-apply-replacements-binary', self._clang_apply_replacements, '-checks=%s' % checks, - '-extra-arg=-DMOZ_CLANG_PLUGIN'] + '-extra-arg=-std=c++17', '-extra-arg=-DMOZ_CLANG_PLUGIN'] # Flag header-filter is passed in order to limit the diagnostic messages only # to the specified header files. When no value is specified the default value