History log of /external/clang/bindings/python/clang/cindex.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4967a710c84587c654b56c828382219c3937dacb 20-Sep-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master Clang for rebase to r275480

Bug: http://b/31320715

This merges commit ac9cc4764cf47a6c3f031687d8592e080c9f5001 from
aosp/dev.

Test: Build AOSP and run RenderScript tests (host tests for slang and
libbcc, RsTest, CTS)

Change-Id: Ic2875e5c3673c83448cd7d1013861e42947b1b55
/external/clang/bindings/python/clang/cindex.py
87d948ecccffea9e9e37d0d053b246e2d6d6c47b 04-Mar-2016 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master clang for rebase to r256229

http://b/26987366

Change-Id: I5d349c9843ea5c24d6e455956f8a446393b6873d
/external/clang/bindings/python/clang/cindex.py
58878f85ab89b13e9eea4af3ccf055e42c557bc8 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master clang for rebase to r235153

Change-Id: Ia94bbcb6da7c75b6e7c2afedd1001094d62a7324
/external/clang/bindings/python/clang/cindex.py
176edba5311f6eff0cad2631449885ddf4fbc9ea 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master Clang for rebase to r222490.

Change-Id: Ic557ac55e97fbf6ee08771c7b7c3594777b0aefd
/external/clang/bindings/python/clang/cindex.py
c568f1e98938584c0ef0b12ae5018ff7d90a4072 21-Jul-2014 Stephen Hines <srhines@google.com> Update Clang for rebase to r212749.

This also fixes a small issue with arm_neon.h not being generated always.

Includes a cherry-pick of:
r213450 - fixes mac-specific header issue
r213126 - removes a default -Bsymbolic on Android

Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
/external/clang/bindings/python/clang/cindex.py
6bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89 29-May-2014 Stephen Hines <srhines@google.com> Update Clang for 3.5 rebase (r209713).

Change-Id: I8c9133b0f8f776dc915f270b60f94962e771bc83
/external/clang/bindings/python/clang/cindex.py
651f13cea278ec967336033dd032faef0e9fc2ec 24-Apr-2014 Stephen Hines <srhines@google.com> Updated to Clang 3.5a.

Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/bindings/python/clang/cindex.py
8c099d9b04f0b3025e713f76b42a50f3a67d404f 31-Oct-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang/python] Add __contains__ to SourceRange class.

Patch by Loïc Jaquemet!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193725 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
659837e0ce0f73c7fdd5941854be3500db2f4013 11-Oct-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang] Introduce clang_Type_getCXXRefQualifier whichexposes ref-qualifier information of function type.

Patch by Che-Liang Chiou!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192493 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
c23cb2d3e8af8354d43517283d3efb2cb0681f49 03-Oct-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang] python: expose a few functions, patch by Loïc Jaquemet!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191907 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
367e8fe3ef5bcf5e3c9855364560b89f7a1e9145 03-Oct-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang] Introduce clang_Type_getClassType which returns the class type of a member pointer type.

Patch by Che-Liang Chiou!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191906 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
dd9e2cb92274c8fea6b2d2acdd153c046d0a3888 25-Sep-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang] python: fix return type of clang_Type_getSizeOf().

Patch by Loïc Jaquemet!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
513371129c834c143a50c3ca09bb581b7f0f6344 25-Sep-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang] Provide location for attributes and expose 'packed' attribute.

Patch by Loïc Jaquemet!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191345 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
4c4f6fe2a6d6b3ffd0ce114cb8099366662b67f7 23-Jul-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang] Expose the rest of the array types.

Patch by Che-Liang Chiou!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
da6a6f087b70cdac18c37028f8cff707f10f91cf 11-Jun-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [libclang/python] Add a few "cursor kinds" that were missing in the python binding for libclang.

Patch by Mathieu Baudet!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183760 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
c965f76e02d536d875b1e9e3ea96f39452c6bfa2 17-May-2013 Dmitri Gribenko <gribozavr@gmail.com> libclang: add a function to check whether a member function is pure virtual

Patch by Seth Fowler.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182139 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
52bb2a06361d1d0d51809a2ac06e270e8cf05a9e 21-Apr-2013 Dmitri Gribenko <gribozavr@gmail.com> Fix return type of isBitfield in the binding definition

Patch by Loïc Jaquemet.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179984 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
411d33aa0b0d3bc9b2faec40cd821bdd836094ab 11-Apr-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [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!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179251 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
11d6cd318df1459ed57b26912d5c7a5cf2c2f091 19-Mar-2013 Tobias Grosser <grosser@fim.uni-passau.de> cindex.py: Handle NULL pointers when parsing translation units

The code inside cindex.py was comparing NULL pointer returned by
clang_parseTranslationUnit and clang_createTranslationUnit with None.
However, as illustrated by the two tests I've added, those conditions
were ineffective which resulted in assert triggering later on.

Instead, a pointer is now treated as a boolean value, a NULL pointer being
False.

Contributed-by: Xavier Deguillard <deguilx@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177408 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
bba99ad6e28e0a91bbfb1137d52a5d7cb94c72d3 20-Jan-2013 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py]: Use spaces instead of tabs

The tabs slipped in accidentally.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172934 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
69a8552f85c1b926320418cb98fe02988c79578f 19-Jan-2013 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Add cache for CompletionChunk spellings

Most of the CompletionChunks represent braces, colons or other one
character spellings. There is no need to call libclang, to figure out
how to write a colon. Instead we use an internal cache to retrieve the
correct spelling. As function calls from python are very expensive and
this is a performance critical part of auto completion this patch makes
formatting of auto completion results a lot faster.

Formatting time changes from 0.57 to 0.45 seconds

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172901 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
eca36d1ae23d0e4c46a3c2c2b91a19f4a2f8055d 19-Jan-2013 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Replace CachedProperty with our own implementation

This is a very performance critical point for auto completion. The manual
implementation gives a large speedup. As it does not complicate the code a lot,
I figured it is worth the change. If anybody understands why the CachedProperty
is here so much slower, I am very interested in working on an improvement of
CachedProperty.

Formatting time changes from 0.72 to 0.57 seconds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172900 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
e43d3861d969ad583e10ef7e46c5e08e866dfaa5 19-Jan-2013 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py]: Speed up lookup of the completion kind

We can directly the number of the kind instead of going through the
completionChunkKindMap.

Formatting time changes from 0.84 to 0.72 seconds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
d829379ed95cdce29497118c6c6c39bd7f62f307 02-Jan-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [python bindings] Expose cursor.referenced (clang_getCursorReferenced).

Patch by Matthew King!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171423 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
379ffe444f0a98f16f96470e0983bad50f282bc7 11-Dec-2012 Matt Beaumont-Gay <matthewbg@google.com> Fix a copypasto bug. Also rename the parameter in question to not shadow the
'file' builtin, and fix up a docstring a little.

Hat tip to Sebastian Kreft Carreno at Google for noticing the bug.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169887 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
b03b57d14983f90adb85f662812ba5742cfe45f2 01-Nov-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Add Cursor.get_arguments()

Patch provided by Matthias Kleine <matthias_kleine@gmx.de>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
6988666289cdbe432c226868438d3005ba1f0312 07-Oct-2012 Benjamin Kramer <benny.kra@googlemail.com> Python bindings: fix typo.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165375 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
724d0dcc4d3765591b4586e7d064b2cba92ba43e 07-Oct-2012 Benjamin Kramer <benny.kra@googlemail.com> Python bindings: Add missing availability kind.

Patch by Leo Liu, test case by me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
c12d6a027662c978fc418c6fb584222fb3638483 22-Sep-2012 Dmitri Gribenko <gribozavr@gmail.com> Fix cindex.py compatibility with older libclang.so

The issue is that we were calling clang_getCompletionBriefComment
unconditionally. New we check if this function is available before calling it.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164464 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
c69e067f24aa64a277ca4d6048a3165cbb23dbe7 15-Sep-2012 Dmitri Gribenko <gribozavr@gmail.com> Add bindings for clang_getCompletionBriefComment to cindex.py.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163966 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
857134ed8412eab7aeb95c56eb8ddcd29c10c612 05-Sep-2012 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Make the use of a compatibilty check explicit

At the moment, we implictly check compatibility between the python
bindings and libclang, as the python bindings will fail to load in
case a method we use in libclang is not available.

This patch makes the use of this compatibility check explicit and introduces a
flag to optionally disable the check. This will allow us to further harden the
compatibility check, but it also gives the user the possibility to disable the
compatibility check to evaluate compatibility with older libclang versions.

I added documentation that makes clear the python bindings are only tested
with the libclang version they have been shipped with.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
fcbc0fbaa480e6707af6ef437f5c43ea9f477d3a 03-Sep-2012 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Allow to configure the path of libclang

By calling cindex.Config.set_library_path(path) or
cindex.Config.set_library_file(file) it is possible to specify from where
we load libclang. This fixes an open FIXME.

We also point the user to these functions, in case libclang can not be
loaded sucessfully.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163121 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
010556ef87db723780ee52cf6c0348ca304e20dc 01-Sep-2012 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Add helper to initialize libclang functions

The helper allows us to define how the initialization of functions should
behave. We use this patch to provide an informative error message, in case a
function is not available:

"LibclangError: /home/grosser/Projekte/llvm/install/lib/libclang.so: undefined
symbol: clang_method_added_in_2020. Please ensure that your python bindings are
compatible with your libclang.so version."

This patch also ensures that no spelling mistakes slip into the library
initialization. At the moment, there are a couple of 'argtype' -> 'argtypes'
mispellings that have been overlooked.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163057 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
147785b852ed247ebfd568a92579f7bc1fe347c8 20-Aug-2012 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Cache the number of chunks in CompletionString

Without this patch, lib.clang_getNumCompletionChunks is called at
each _iteration_ of a 'for chunk in CompletionString' loop. Now we
call it just once.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
d9ee06b2faddf9382af9fa20d1c34b8d05126417 20-Aug-2012 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Add CachedProperty to CompletionChunk

Suggested by: Francisco Lopes <oblita@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162191 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
b15b15c7f641fd7a71ad94ffe41b162f03d429b0 19-Aug-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Add CachedProperty decorator

It isn't used anywhere yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162190 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
58308d8469cfe3395ede90423e2e80e769f336ce 19-Aug-2012 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Use spaces, not tabs for indentation

Reported by: Francisco Lopes <oblita@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
73719240e674a135155c5760f1c9c9dd474042b6 19-Aug-2012 Tobias Grosser <grosser@fim.uni-passau.de> [cindex.py] Dispose code completion results properly

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162181 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
be51e43ba2c57b8032286af4e8713485b6dc78c3 12-Jul-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Token API

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160111 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
0f1964a5c1627bcc3fd658cdd1f139e30b0ad612 12-Jul-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Add TranslationUnit.get_{file,source_location,source_range}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
9537e209be50c9af93e5e32c7d4d39af23de9c2d 12-Jul-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Refactor how ctypes functions are registered

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
a910f47654217d378047d9abbc5780a29ab04872 10-Jul-2012 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> [cindex.py] Make CompileCommand.arguments usage consistent with CompileCommand.directory and the rest of the python binding

Patch by David Röthlisberger

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159970 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
b1614041ac297f2e1fca359e9b77291ae5006832 09-Jul-2012 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> [cindex.py] fix infinite iteration of compilation database CompileCommands

Patch by David Röthlisberger

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159926 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
577c530fe29b6fc8f65ef0ff5b9f194a51a68d82 06-Jul-2012 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> [cindex.py] Fix erroneous comment for CompileCommands

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
c70851b74c06b27df07b9a772656a2e663d432ee 03-Jul-2012 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> [libclang] CompilationDatabase naming and comment fixes

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159682 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
4439478c38222bb56d42a9afe4c6c51cb8b593d2 30-Jun-2012 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> [cindex.py] Fix comments

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159492 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
910ff3f7f0a781fbb88c95bc957d1dcf63af91fa 30-Jun-2012 Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> [cindex.py] add CompilationDatabase support

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159485 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
74bb710e73229ce0ad3bb27c8689c0276e8ec131 11-Jun-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement SourceLocation.from_offset

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158307 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
e65b34deb1f8f7c80765f1c00476e7609bb9eada 09-Jun-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Cursor.is_static_method

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158277 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
39a03d1015c9413226e8af20d7c00b48e7463c00 08-Jun-2012 Douglas Gregor <dgregor@apple.com> Fix typo "CursorKind.CONDITONAL_OPERATOR" in Python bindings, from
Manish Verma!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158182 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
a63ef1f63f9c2ae847fac25534c9e1a214efabbc 15-May-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Store reference to TranslationUnit in Cursor and Type

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
2c40835c21cd435f183da3d4754aff6beeaef9f6 14-May-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Cursor.canonical

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156753 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
1e370ab68e5b69fc40a782ee5ce01ec2c6857879 14-May-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Cursor.result_type

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
2283b4664b004aae034b08f305ad2bc1dff9868e 12-May-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Followup to TranslationUnit refactor

* Document index argument in TranslationUnit.from_source
* Add numeric error code to TranslationUnitSaveError string representation
* Use None instead of [] for default argument value in
TranslationUnit.codeComplete

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156722 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
fd04a6a88255ce3a90e5f73aef69c08bb5a35677 08-May-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Remove trailing whitespace from recent commits

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156373 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
fbf620bc2b7812e826f04befa31d3a48a86210ba 08-May-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] TranslationUnit API improvements

* TranslationUnit reading and parsing now implemented as
TranslationUnit.from_ast() and TranslationUnit.from_source().
* Index.parse() and Index.read() implemented through above.
* Index.parse() and Index.read() now raise a TanslationUnitLoadException
instead of returning None if a TranslationUnit could not be
instantiated. This is backwards incompatible.
* Ability to save TranslationUnits via TranslationUnit.save().
* TranslationUnit now holds onto Index instance that created. This means
the Index can't be GC'd until the TranslationUnit is itself GC'd,
making memory management thoughtless.
* Don't use [] as a default argument value, as the initial value used is
reused for the duration of the program.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
667fd80de4c3b7b143ba98a3b73e9b9b200f6af0 07-May-2012 Manuel Klimek <klimek@google.com> - 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.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156286 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
bbc2e090996cdf51f0e7a4235f6e0ca65c95d514 02-May-2012 Anders Waldenborg <anders@0x63.nu> [python] Add Cursor.enum_value wrapping clang_getEnumConstantDeclValue


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156017 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
6e67eed3276f16edac4ab4ef5a36d2b896e18288 15-Apr-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement TypeKind.spelling

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154769 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
5cc6787b1ce76fc3b6e5fc6c2729f0dbfaf6c749 10-Mar-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Cursor.objc_type_encoding

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152513 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
9d008fd572fa3411e93084d51f12ea12a998786c 05-Mar-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Return bool from Cursor.__eq__

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152011 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
8261345a32e58dfb5f4269ed92e1608a4ec3379a 20-Feb-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Format and add documention for Type


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150972 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
826fce53d64e0ca8fdcfdd11f4e9aab6c8be224f 20-Feb-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Type.argument_types()


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150970 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
7eb691a7b61ba895695bbbf92e944d98ef49390d 20-Feb-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Type.__eq__ and Type.__ne__


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150969 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
31cc38cb76317bfe50aadbc625d6ff67f727607a 19-Feb-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Type.is_function_variadic


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150936 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
bf8ca0049ea4faa7b089001e837e0ebbaec2ac6d 17-Feb-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Type.element_count


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150800 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
860576050b4d163a2f182cfdd67d8c5a48e32c08 17-Feb-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Type.element_type


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150799 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
96ad633771182c54b5b62fa4be23f866ed0beb15 05-Feb-2012 Gregory Szorc <gregory.szorc@gmail.com> [clang.py] Implement Type.is_pod


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
2d10680fe173c21c33367a04bb0969f65a43434c 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] Change type -> Type

Names that have corresponding classes in python are commonly started with an
uppercase letter. Let's follow that convention.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149831 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
eb9ff2ea9ed829809cb177e74238301cfc2750ca 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] Implement Cursor.enum_type

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149830 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
28d939ffd6877f8a2c6a5b6704df792319f3878e 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] Implement Cursor.underlying_typedef_type

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
250d217586b0dafcb0be343a80da31c956258e2e 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] add TypeKind.VECTOR

Added a missing enumeration.

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
eb13634e3914ce997f7e2ea5d3e585c79e9e9b4c 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] Add CursorKind.{is_translation_unit, is_preprocessing, is_unexposed}

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149827 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
64e7bdc1d4c8c2f40f32e699014e85fbe1be57f7 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] Implement Cursor.hash

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149826 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
ea403825faa5b8780a9b44277e6a2c68d7849146 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] Expose diagnostic category and option info to Python binding

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149825 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
74858335a1a5205b3e1c89ecf9221cea839c0b0b 05-Feb-2012 Tobias Grosser <grosser@fim.uni-passau.de> [clang.py] Implement __eq__ and __ne__ on SourceLocation and SourceRange

There is no type checking in __eq__, so ctypes will throw if the wrong
Python type is passed in to the C function. Personally, I feel garbage
in means garbage out and it isn't worth testing for this explicitly.

Contributed by: Gregory Szorc <gregory.szorc@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149824 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
bf3cc73db94f2fbeb57929887bd05d5a0e077f0c 30-Dec-2011 Rafael Espindola <rafael.espindola@gmail.com> Add CXX_FINAL_ATTR, CXX_OVERRIDE_ATTR, ANNOTATE_ATTR and ASM_LABEL_ATTR to the
python bindinds.
patch by Tom Schuster!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147378 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
ffbe9b9c64ab2e94b9d48ec56e511f75826fc80a 23-Dec-2011 Benjamin Kramer <benny.kra@googlemail.com> Mass rename C1x references to C11. The name hasn't proliferated like "C++0x" so this patch is surprisingly small.

Also drop -Wc1x-extensions in favor of -Wc11-extensions. I don't think we need to keep this around for compatibility.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147221 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
ba5d10b82b3cc00b4d71b273a18c051a1f38f22f 31-Oct-2011 Tobias Grosser <grosser@fim.uni-passau.de> cindex.py: Remove more ternary operator + whitespace fixes

Another batch of ternary operators and some whitespace fixes
(Getting in sync with the clang_complete version of this file)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143330 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
8198288f4e5dfe1743abeed1aee780fe1ddcdf07 31-Oct-2011 Tobias Grosser <grosser@fim.uni-passau.de> clang.py: Remove use of ternary operators

This change is necessary to make this file python 2.4 compatible.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143324 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
58ba8c9f182c94553c8871086bf68e336a14a527 31-Oct-2011 Tobias Grosser <grosser@fim.uni-passau.de> cindex.py: Allow to create a cursor from file/row/column

We add a constructor to create a SourceLocation from a position in
a file and we use this SourceLocation to retrieve a cursor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143322 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
a9ea5df14abb807eb0173e2737c5a1d61e86975b 31-Oct-2011 Tobias Grosser <grosser@fim.uni-passau.de> cindex.py: Add File.create_from_name()

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
13102ffbb00f1397fa02950e0cbc82d17be21792 19-Oct-2011 Douglas Gregor <dgregor@apple.com> Add support for constant arrays, from Anders Waldenborg!.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142477 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
38d2d5539e72ce3d92c4746b632f3a7c2e48b4a2 19-Oct-2011 Douglas Gregor <dgregor@apple.com> Add TypeKind.CONSTANTARRAY, from Anders Waldenborg!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142476 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
9d342ab031ba831263291a3bcda485e684508ea9 19-Oct-2011 Douglas Gregor <dgregor@apple.com> Fix error message for unknown type kind, from Anders Waldenborg!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142475 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
2abfec3240e8f2dafc9b62a71c69a6380aa5509a 19-Oct-2011 Douglas Gregor <dgregor@apple.com> This new field was introduced in clang-c in r141277

Python needs this in its structure definition so it allocates enough
memory. From Anders Waldenborg!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142474 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
42b2984771a7fd1b17c78bbb2c59fed3db2f1960 05-Oct-2011 Douglas Gregor <dgregor@apple.com> Expose more statement, expression, and declaration kinds in libclang,
from Manuel Holtgrewe!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141200 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
b60a2bebb5f3048f6c53d4f3997ebd84493a2d98 30-Aug-2011 Douglas Gregor <dgregor@apple.com> Add support for Cursor.displayname in python bindings, from Anders Waldenborg!


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138785 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
6b04623bcc64a5091a47fb18cd40af5e93b773ad 17-Aug-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com> [python] Fix bug of the SourceLocation binding.
Patch by Anders Waldenborg!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
d7933e6f29b4c93df8263df21ff5e2e1dd0cecb8 17-Aug-2011 Argyrios Kyrtzidis <akyrtzi@gmail.com> [python] Add support for CXType to python bindings.
Patch by Anders Waldenborg!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137797 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
8be80e1e6effd5a333bc70e7f030dc9397d0554e 06-Jul-2011 Douglas Gregor <dgregor@apple.com> Improve the Python bindings for libclang in a few ways, from Eli
Bendersky. Specifically:

* Implemented a new function in libclang: clang_isAttribute

* Fixing TranslationUnit.get_includes to only go through the argument
* buffer when it contains something. This fixed a crash on Windows

* clang_getFileName returns CXString, not char*. Made appropriate
* fixes in cindex.py - now the relevant tests pass and we can see the
* full locations correctly again (previously there was garbage in
* place of the file name)
* Exposed clang_getCursorDisplayName to the python bindings



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
a87dbcc04987ebf91adec3e00ac5e1548af6d865 05-Feb-2011 Tobias Grosser <grosser@fim.uni-passau.de> python bindings: Add support for different kind of completion chunks

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124959 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
6d2a40c191f6029dd95f32eb355a345ffdc30352 05-Feb-2011 Tobias Grosser <grosser@fim.uni-passau.de> python bindings: Get the string representation of a CompletionChunk

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
0a16680067df298affe5da21dc7ea10c235f6e8d 05-Feb-2011 Tobias Grosser <grosser@fim.uni-passau.de> python bindings: Add CodeCompletionResults

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124957 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
265e6b2d17ae348ce73961866979f574c65b56f4 05-Feb-2011 Tobias Grosser <grosser@fim.uni-passau.de> python bindings: Add support for translationUnit.reparse().

This is the first step to make the clang_complete vim plugin work with
libclang. Reparsing improves parsing time from 0.8 to 0.25 secs for
one of my LLVM .cpp files.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
f498e00a30ca7fdaf4f49e778862f4cf84ffab2a 05-Feb-2011 Tobias Grosser <grosser@fim.uni-passau.de> python bindings: fix Diagnostics.range iterator

The iterator did never throw an IndexError. It was therefore not possible
to use it in a normal foreach loop as that loop would never stop.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124953 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
ff090ca42aa319e1bbdde38b3940219ea11e07b3 05-Feb-2011 Tobias Grosser <grosser@fim.uni-passau.de> python bindings: Use python Diagnostics as function arguments

This improves the readability of the code and fixes one testsuite bug.

The bug happend, because we only stored the pointer to the diagnostic in the
FixIt iterator, but not the python Diagnostic object. So it could happen that
the FixIt iterator still exists, but the python Diagnostic object is freed.
However, as the python Diagnostic is freed the pointer to the diagnostic is also
freed and the FixIt iterator is referencing a freed pointer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124952 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
4ed73ce03bbdc56692f3bc232cb64632dc9dbc0f 05-Feb-2011 Tobias Grosser <grosser@fim.uni-passau.de> python bindings: Synchronize cursor kinds

clang-c/Index.h contained cursor kinds not yet available in the python bindings.

Contributed-By: jmuizelaar@mozilla.com

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124951 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
f51f20fa34654da75d15a9e2a1a0cd2fc0d8603d 30-Apr-2010 Daniel Dunbar <daniel@zuster.org> Rename 'CIndex' to 'libclang', since it has basically become our stable public
(C) API, and will likely grow further in this direction in the future.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102779 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
1d02ccd1aa9bab97d0c0869d54df05a4e5f57b1b 06-Mar-2010 Benjamin Kramer <benny.kra@googlemail.com> Rename the new Iterator objects and raise an assertion instead of returning invalid objects when the key is out of range.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97881 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
3b0cf09f9c84e75881b261eb4a7a69d99aa0335a 06-Mar-2010 Benjamin Kramer <benny.kra@googlemail.com> Update the python bindings for recent changes in the CIndex API.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97880 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
ef7f798c0921cde7e665935a5630578cc1065e0f 13-Feb-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Add TranslationUnit.get_includes, patch by Andrew Sutton!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
b51abe9b5f76e5d06d348c8ef2d0a7cd9d797b58 13-Feb-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Update for clang_getDiagnosticRange... API changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96105 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
532fc63b51cd0eb795df36d3fe306645b8b980e4 31-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Add full support for Diagnostic and FixIt objects, available via TranslationUnit.diagnostics.

Several important FIXMEs remain:
- We aren't getting all the notes?
- There is still no way to get diagnostics for invalid inputs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
e32af4213eb499fc5b6db15a9da9712148fcf8b5 31-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Update SourceLocation and SourceRange structures to match API changes.

Hurray for exposing implementation details!!!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94932 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
2791dfc0fcbff64dbdaccde433b75c7226528b8d 31-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Update Index.create for removal of displayDiagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94931 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
3239a67361cc89eba2fe7c7abdb41bd2c9414207 29-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Update to support _getInstantiationLocation's new offset value.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94813 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
061bae930bbb3e02ccc3d585e29f173b7f76646b 25-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Move translation unit load functions to Index, there isn't a good reason to have separate static methods for this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94419 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
db59a7700e5e42e8b5f6f8e327067a969540ee14 25-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Support file objects as unsaved_files, albeit inefficiently.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
5b534f67946eeb2cb29076288bfee9707f055f82 25-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Implement support for unsaved/remapped files.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94396 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
1f8d7f94c7c61c7bb45ebb07e6ce5461bf2a80d5 25-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Fix/simplify Index.parse() passing command line arguments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94394 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
4efd632322731425d83d205f26bddcdfe1ac8937 25-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Update comments, add module docstrings, add LLVM headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94392 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
a6a6499a904441fc9e82ba9dd4155b8bc33f38f9 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Move Cursor.is_ methods to CursorKind, and add test.

Also, add CursorKind.get_all_kinds().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
12bf15c48a007bc6cc36f3d2e8a0d2e67ccf9886 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Implement explicit objects for CursorKind enumeration values.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
f869083cbfea538d6b7baf4ece30066b11984e12 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Fetch SourceLocation instantiation location information on lazily, it isn't free.

Also, add repr() support to SourceRange.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94387 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
3d855f8d48b235eb2beb45216cced24efd3c08fa 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Add Cursor.get_usr().

Also, change Cursor.spelling to return None for non-decls, for consistency with get_usr().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94386 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
fb8ae1796e7209b6dcd9ab08bae7cac55e1cec39 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Return null cursors as None instead of exposing this notion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94385 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
a33dca490ad55c6f4bfc38a911f41a66f508a482 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Convert CXString objects to regular Python strings below API.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94384 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
be0b555b8088e5dd5d193560a3f29fe383810b4c 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> Simplify.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
0263a1e517a5de518114d54d44298199ed962c4e 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Remove Cursor.file forwarding method, this doesn't really fit the API.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
de3b8e525a876d6c25554aeb782c368afec00db1 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Add Cursor.get_children()

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94359 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
2c7bcaa1d86987f03a7ba7645b872f18e2feea21 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Remove Declaration class, this has been removed from the API.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
149f38abf5e122941090bfb9d1d78dde0859024a 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Eliminate Entity class, it has been removed from CIndex.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
99d593ed41216ffc8e6ebb25fdcb5102c3866b99 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> Simplify.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94356 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
1b945a7455e17fd792ef3bd3790dc88beea5faad 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Add TranslationUnit.cursor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94355 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
7b48b3519a792c010da104f0c4e554b47bf774da 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Tweak Source{Location,Range}
- Add __repr__ on SourceLocation.

- Fix File object construction to use c_object_p type, and use None instead of
invalid File objects.

- Make SourceRange.{start,end} properties.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94354 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
aa22984a82121b55841715123f7314bb850cb664 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> cindex/Python: Make Cursor.is_... functions not properties.

Also, add ValueError check before calling Cursor_spelling.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94353 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py
30c0f2637c4ba5d8764ff6e1ee6cbc89b89c63db 24-Jan-2010 Daniel Dunbar <daniel@zuster.org> Initial checkin of CIndex Python bindings, by Andrew Sutton!
- Some tweaks by me for API changes, Darwin, and x86_64 support. Still needs
substantial updating to match recent CIndex API changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/bindings/python/clang/cindex.py