Jonathan Coe
2956535b7c
Expose cxx constructor and method properties through libclang and python bindings.
...
Summary:
I have exposed the following function through libclang and the clang.cindex python bindings:
clang_CXXConstructor_isConvertingConstructor,
clang_CXXConstructor_isCopyConstructor,
clang_CXXConstructor_isDefaultConstructor,
clang_CXXConstructor_isMoveConstructor,
clang_CXXMethod_isDefaulted
I need (some of) these methods for a C++ code model I am building in Python to drive a code generator.
Reviewers: compnerd, skalinichev
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D15469
llvm-svn: 267706
2016-04-27 12:48:25 +00:00
Saleem Abdulrasool
6ea75dbeb0
Index: expose is_mutable_field
...
Expose isMutable via libClang and python bindings.
Patch by Jonathan B Coe!
llvm-svn: 251410
2015-10-27 15:50:22 +00:00
Saleem Abdulrasool
d79eec97fc
bindings: add new C++ function attribute accessors
...
Add methods to index Cursor to see if a cxx method is pure_virtual,
virtual or const methods.
Patch by Jonathan B Coe!
llvm-svn: 250008
2015-10-12 03:10:20 +00:00
Eli Bendersky
c27a0c490c
Add libclang capabilities to retriete template arguments from specializations.
...
Includes Python bindings.
Reviewed in http://reviews.llvm.org/D5621
Patch by Rob Springer
llvm-svn: 219529
2014-10-10 20:01:05 +00:00
Eli Bendersky
d28bc5e2f2
Expose the name mangling C API to Python bindings.
...
llvm-svn: 214930
2014-08-05 22:27:50 +00:00
Alp Toker
ab54f46eec
cindex/test_cursor.py: no need to skip implicit decls in tests
...
clang was fixed some time ago to always skip "builtins and other cruft" so
tools no longer need hacks like this.
Passes nosetests.
llvm-svn: 209316
2014-05-21 19:17:38 +00:00
Argyrios Kyrtzidis
eedb5432c5
[python bindings] Expose cursor.referenced (clang_getCursorReferenced).
...
Patch by Matthew King!
llvm-svn: 171423
2013-01-02 22:31:57 +00:00
Gregory Szorc
245296ed40
[clang.py] Add Cursor.get_arguments()
...
Patch provided by Matthias Kleine <matthias_kleine@gmx.de>
llvm-svn: 167216
2012-11-01 05:46:30 +00:00
Gregory Szorc
9a2cb42451
[clang.py] Implement Token API
...
llvm-svn: 160111
2012-07-12 07:21:12 +00:00
Gregory Szorc
531880af77
[clang.py] Implement Cursor.is_static_method
...
llvm-svn: 158277
2012-06-09 16:21:34 +00:00
Gregory Szorc
b25e3d143a
[clang.py] Store reference to TranslationUnit in Cursor and Type
...
llvm-svn: 156846
2012-05-15 19:51:02 +00:00
Gregory Szorc
8eac05c362
[clang.py] Implement Cursor.canonical
...
llvm-svn: 156753
2012-05-14 03:56:33 +00:00
Gregory Szorc
71efa09fa7
[clang.py] Implement Cursor.result_type
...
llvm-svn: 156752
2012-05-14 03:53:29 +00:00
Gregory Szorc
23cfc9f760
[clang.py] Remove trailing whitespace from recent commits
...
llvm-svn: 156373
2012-05-08 06:01:34 +00:00
Manuel Klimek
297e9c3091
- Adding lexical_parent and semantic_parent properties to clang.cindex.Cursor
...
- Two new tests (one for each property), require libclang built from r155858 or later to pass
- New test utility function (get_cursors) that gets all the nodes with a specific spelling.
Patch by Evan Pipho.
llvm-svn: 156286
2012-05-07 05:56:03 +00:00
Anders Waldenborg
750c04f1a5
[python] Add testcase for annotation cursor
...
llvm-svn: 156022
2012-05-02 21:28:34 +00:00
Anders Waldenborg
94c71052e7
[python] Add Cursor.enum_value wrapping clang_getEnumConstantDeclValue
...
llvm-svn: 156017
2012-05-02 20:57:33 +00:00
Anders Waldenborg
c2d64c428a
[python] Add testcase for enum with specified underlaying type
...
llvm-svn: 156009
2012-05-02 19:39:46 +00:00
Gregory Szorc
a8b30c5b61
[clang.py] Implement Cursor.objc_type_encoding
...
llvm-svn: 152513
2012-03-10 22:23:27 +00:00
Gregory Szorc
0e20a09165
[clang.py] Refactor get_tu and get_cursor test helper functions into util.py
...
llvm-svn: 152510
2012-03-10 22:19:05 +00:00
Gregory Szorc
5b4173912f
[clang.py] Test Cursor.__ne__
...
llvm-svn: 151504
2012-02-26 21:56:32 +00:00
Tobias Grosser
a0022e911e
[clang.py] Implement Cursor.enum_type
...
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149830
2012-02-05 11:42:25 +00:00
Tobias Grosser
062d2a3c89
[clang.py] Implement Cursor.underlying_typedef_type
...
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149829
2012-02-05 11:42:20 +00:00
Tobias Grosser
ebb0ae82a2
[clang.py] Implement Cursor.hash
...
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149826
2012-02-05 11:42:03 +00:00
Douglas Gregor
7c7c068251
Add support for Cursor.displayname in python bindings, from Anders Waldenborg!
...
llvm-svn: 138785
2011-08-30 00:15:34 +00:00
Argyrios Kyrtzidis
f872dc4c3b
[python] Add support for CXType to python bindings.
...
Patch by Anders Waldenborg!
llvm-svn: 137797
2011-08-17 00:43:03 +00:00
Daniel Dunbar
1e079a48ad
cindex/Python: Update Index.create for removal of displayDiagnostics.
...
llvm-svn: 94931
2010-01-30 23:58:39 +00:00
Daniel Dunbar
90986f5d3f
cindex/Python: Add Cursor test.
...
llvm-svn: 94397
2010-01-25 00:44:21 +00:00