| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 150972
|
|
|
|
|
|
| |
Type.is_restrict_qualified
llvm-svn: 150971
|
|
|
|
| |
llvm-svn: 150970
|
|
|
|
| |
llvm-svn: 150969
|
|
|
|
| |
llvm-svn: 150936
|
|
|
|
| |
llvm-svn: 150800
|
|
|
|
| |
llvm-svn: 150799
|
|
|
|
| |
llvm-svn: 149842
|
|
|
|
|
|
|
| |
Names that have corresponding classes in python are commonly started with an
uppercase letter. Let's follow that convention.
llvm-svn: 149831
|
|
|
|
|
|
| |
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149830
|
|
|
|
|
|
| |
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149829
|
|
|
|
|
|
|
|
| |
Added a missing enumeration.
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149828
|
|
|
|
|
|
| |
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149827
|
|
|
|
|
|
| |
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149826
|
|
|
|
|
|
| |
Contributed by: Gregory Szorc <gregory.szorc@gmail.com>
llvm-svn: 149825
|
|
|
|
|
|
|
|
|
|
| |
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>
llvm-svn: 149824
|
|
|
|
|
|
|
| |
python bindinds.
patch by Tom Schuster!
llvm-svn: 147378
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 147221
|
|
|
|
|
|
|
| |
Another batch of ternary operators and some whitespace fixes
(Getting in sync with the clang_complete version of this file)
llvm-svn: 143330
|
|
|
|
|
|
| |
This change is necessary to make this file python 2.4 compatible.
llvm-svn: 143324
|
|
|
|
|
|
|
| |
We add a constructor to create a SourceLocation from a position in
a file and we use this SourceLocation to retrieve a cursor.
llvm-svn: 143322
|
|
|
|
| |
llvm-svn: 143321
|
|
|
|
| |
llvm-svn: 142477
|
|
|
|
| |
llvm-svn: 142476
|
|
|
|
| |
llvm-svn: 142475
|
|
|
|
|
|
|
| |
Python needs this in its structure definition so it allocates enough
memory. From Anders Waldenborg!
llvm-svn: 142474
|
|
|
|
|
|
| |
from Manuel Holtgrewe!
llvm-svn: 141200
|
|
|
|
|
|
| |
from Anders Waldenborg!
llvm-svn: 138786
|
|
|
|
| |
llvm-svn: 138785
|
|
|
|
|
|
| |
Patch by Anders Waldenborg!
llvm-svn: 137829
|
|
|
|
|
|
| |
r137797.
llvm-svn: 137828
|
|
|
|
|
|
| |
Patch by Anders Waldenborg!
llvm-svn: 137797
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
llvm-svn: 134460
|
|
|
|
| |
llvm-svn: 124959
|
|
|
|
| |
llvm-svn: 124958
|
|
|
|
| |
llvm-svn: 124957
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 124956
|
|
|
|
| |
llvm-svn: 124955
|
|
|
|
| |
llvm-svn: 124954
|
|
|
|
|
|
|
| |
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.
llvm-svn: 124953
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 124952
|
|
|
|
|
|
|
| |
clang-c/Index.h contained cursor kinds not yet available in the python bindings.
Contributed-By: jmuizelaar@mozilla.com
llvm-svn: 124951
|
|
|
|
|
|
| |
(C) API, and will likely grow further in this direction in the future.
llvm-svn: 102779
|
|
|
|
|
|
| |
invalid objects when the key is out of range.
llvm-svn: 97881
|
|
|
|
| |
llvm-svn: 97880
|
|
|
|
|
|
| |
- Doug, please review.
llvm-svn: 96162
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
directly to Index, instead of requiring the input file to be first. This makes
the examples behave more like 'clang'.
For example,
ddunbar@giles:tmp$ echo '#include <string>' | python ~/llvm/tools/clang/bindings/python/examples/cindex/cindex-includes.py -- -x c++ - | wc -l
114
ddunbar@giles:tmp$ echo '#include <stdio.h>' | python ~/llvm/tools/clang/bindings/python/examples/cindex/cindex-includes.py -- -x c - | wc -l
10
llvm-svn: 96107
|
|
|
|
| |
llvm-svn: 96106
|
|
|
|
| |
llvm-svn: 96105
|
|
|
|
|
|
|
| |
pending a hash function. Also added a --max-depth argument, handy for timing and
limiting the volume of output.
llvm-svn: 94936
|