forked from OSchip/llvm-project
[clang-tidy] Tests should not rely on STL headers being available.
llvm-svn: 298501
This commit is contained in:
parent
1c657f74e2
commit
33ec2d6cb1
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue