[clang-tidy] Tests should not rely on STL headers being available.

llvm-svn: 298501
This commit is contained in:
Alexander Kornienko 2017-03-22 12:50:10 +00:00
parent 1c657f74e2
commit 33ec2d6cb1
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ def main():
if len(clang_tidy_extra_args) == 0:
clang_tidy_extra_args = ['--', '--std=c++11'] if extension == '.cpp' \
else ['--']
# Tests should not rely on STL being available, and instead provide mock
# implementations of relevant APIs.
clang_tidy_extra_args.append('-nostdinc++')
if resource_dir is not None:
clang_tidy_extra_args.append('-resource-dir=%s' % resource_dir)