diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-11 01:20:11 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-11 01:20:11 +0000 |
commit | e822f58db4dee2ae56e306512288224979b9b5ba (patch) | |
tree | 8a943fef71fbac920e422542aa8c378007569850 /clang/bindings/python/tests/cindex/util.py | |
parent | b1312a549567db37da26c19b53439b6b05b1e0e5 (diff) | |
download | bcm5719-llvm-e822f58db4dee2ae56e306512288224979b9b5ba.tar.gz bcm5719-llvm-e822f58db4dee2ae56e306512288224979b9b5ba.zip |
[libclang] Expose record layout info via new libclang functions:
clang_Type_getAlignOf
clang_Type_getSizeOf
clang_Type_getOffsetOf
clang_Cursor_isBitField
Patch by Loïc Jaquemet!
llvm-svn: 179251
Diffstat (limited to 'clang/bindings/python/tests/cindex/util.py')
-rw-r--r-- | clang/bindings/python/tests/cindex/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/bindings/python/tests/cindex/util.py b/clang/bindings/python/tests/cindex/util.py index 2323839306d..8614b02ad25 100644 --- a/clang/bindings/python/tests/cindex/util.py +++ b/clang/bindings/python/tests/cindex/util.py @@ -3,7 +3,7 @@ from clang.cindex import Cursor from clang.cindex import TranslationUnit -def get_tu(source, lang='c', all_warnings=False): +def get_tu(source, lang='c', all_warnings=False, flags=[]): """Obtain a translation unit from source and language. By default, the translation unit is created from source file "t.<ext>" @@ -14,8 +14,8 @@ def get_tu(source, lang='c', all_warnings=False): all_warnings is a convenience argument to enable all compiler warnings. """ + args = list(flags) name = 't.c' - args = [] if lang == 'cpp': name = 't.cpp' args.append('-std=c++11') |