| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Patch by Leo Liu, test case by me.
llvm-svn: 165374
|
|
|
|
|
|
| |
regex for version tuples.
llvm-svn: 165104
|
|
|
|
|
|
| |
attribute going iinto XML document.
llvm-svn: 165066
|
|
|
|
|
|
| |
to XML output. // rdar://12378879
llvm-svn: 165039
|
|
|
|
|
|
| |
care of comments by Dimitri and Doug.
llvm-svn: 164957
|
|
|
|
| |
llvm-svn: 164889
|
|
|
|
|
|
|
| |
(I still need to add a test once I figure it out).
Reviewed off-line by Doug. // rdar://12378879
llvm-svn: 164861
|
|
|
|
|
|
|
| |
The issue is that we were calling clang_getCompletionBriefComment
unconditionally. New we check if this function is available before calling it.
llvm-svn: 164464
|
|
|
|
| |
llvm-svn: 163966
|
|
|
|
|
|
|
| |
it is not possible to guarantee that without duplicating logic or buffering
<Discussion> element contents. So, allow empty <Discussion> elements in schema.
llvm-svn: 163842
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 163238
|
|
|
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 163121
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 163057
|
|
|
|
|
|
|
|
| |
Without this patch, lib.clang_getNumCompletionChunks is called at
each _iteration_ of a 'for chunk in CompletionString' loop. Now we
call it just once.
llvm-svn: 162200
|
|
|
|
|
|
| |
Suggested by: Francisco Lopes <oblita@gmail.com>
llvm-svn: 162191
|
|
|
|
|
|
| |
It isn't used anywhere yet.
llvm-svn: 162190
|
|
|
|
|
|
| |
Reported by: Francisco Lopes <oblita@gmail.com>
llvm-svn: 162182
|
|
|
|
| |
llvm-svn: 162181
|
|
|
|
|
|
| |
not compress spaces in verbatim content.
llvm-svn: 161531
|
|
|
|
|
|
| |
Comment XML: add a root node kind for enums.
llvm-svn: 161442
|
|
|
|
|
|
|
|
|
|
|
|
| |
The implementation also includes a Relax NG schema and tests for the schema
itself. The schema is used in c-index-test to verify that XML documents we
produce are valid. In order to do the validation, we add an optional libxml2
dependency for c-index-test.
Credits for CMake part go to Doug Gregor. Credits for Autoconf part go to Eric
Christopher. Thanks!
llvm-svn: 161431
|
|
|
|
| |
llvm-svn: 160111
|
|
|
|
| |
llvm-svn: 160107
|
|
|
|
| |
llvm-svn: 160106
|
|
|
|
|
|
|
|
| |
CompileCommand.directory and the rest of the python binding
Patch by David Röthlisberger
llvm-svn: 159970
|
|
|
|
|
|
| |
Patch by David Röthlisberger
llvm-svn: 159926
|
|
|
|
| |
llvm-svn: 159810
|
|
|
|
| |
llvm-svn: 159682
|
|
|
|
| |
llvm-svn: 159492
|
|
|
|
| |
llvm-svn: 159485
|
|
|
|
| |
llvm-svn: 158307
|
|
|
|
| |
llvm-svn: 158277
|
|
|
|
|
|
| |
Manish Verma!
llvm-svn: 158182
|
|
|
|
| |
llvm-svn: 156846
|
|
|
|
| |
llvm-svn: 156753
|
|
|
|
| |
llvm-svn: 156752
|
|
|
|
|
|
|
|
|
| |
* 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
llvm-svn: 156722
|
|
|
|
| |
llvm-svn: 156373
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
llvm-svn: 156372
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
llvm-svn: 156022
|
|
|
|
| |
llvm-svn: 156017
|
|
|
|
| |
llvm-svn: 156009
|
|
|
|
| |
llvm-svn: 156008
|
|
|
|
| |
llvm-svn: 156007
|
|
|
|
| |
llvm-svn: 154769
|
|
|
|
| |
llvm-svn: 152513
|
|
|
|
| |
llvm-svn: 152510
|
|
|
|
| |
llvm-svn: 152011
|
|
|
|
| |
llvm-svn: 151504
|