[cfe-commits] r156008 - /cfe/trunk/bindings/python/tests/cindex/util.py
Anders Waldenborg
anders at 0x63.nu
Wed May 2 12:37:16 PDT 2012
Author: andersg
Date: Wed May 2 14:37:16 2012
New Revision: 156008
URL: http://llvm.org/viewvc/llvm-project?rev=156008&view=rev
Log:
[python] Run tests for c++ with std=c++11
Modified:
cfe/trunk/bindings/python/tests/cindex/util.py
Modified: cfe/trunk/bindings/python/tests/cindex/util.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/tests/cindex/util.py?rev=156008&r1=156007&r2=156008&view=diff
==============================================================================
--- cfe/trunk/bindings/python/tests/cindex/util.py (original)
+++ cfe/trunk/bindings/python/tests/cindex/util.py Wed May 2 14:37:16 2012
@@ -15,16 +15,17 @@
all_warnings is a convenience argument to enable all compiler warnings.
"""
name = 't.c'
+ args = []
if lang == 'cpp':
name = 't.cpp'
+ args.append('-std=c++11')
elif lang == 'objc':
name = 't.m'
elif lang != 'c':
raise Exception('Unknown language: %s' % lang)
- args = []
if all_warnings:
- args = ['-Wall', '-Wextra']
+ args += ['-Wall', '-Wextra']
index = Index.create()
tu = index.parse(name, args=args, unsaved_files=[(name, source)])
More information about the cfe-commits
mailing list