| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
binding for libclang.
Patch by Mathieu Baudet!
llvm-svn: 183760
|
|
|
|
|
|
| |
Patch by Seth Fowler.
llvm-svn: 182139
|
|
|
|
|
|
| |
Patch by Loïc Jaquemet.
llvm-svn: 179984
|
|
|
|
|
|
|
|
|
|
|
| |
clang_Type_getAlignOf
clang_Type_getSizeOf
clang_Type_getOffsetOf
clang_Cursor_isBitField
Patch by Loïc Jaquemet!
llvm-svn: 179251
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
llvm-svn: 177408
|
|
|
|
|
|
| |
doxygen commands. // rdar://12379053
llvm-svn: 176127
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change introduces a 'kind' attribute for the <Para> tag, that captures the
kind of the parent block command.
For example:
\todo Meow.
used to be just <Para>Meow.</Para>, but now it is
<Para kind="todo">Meow.</Para>
llvm-svn: 174216
|
|
|
|
| |
llvm-svn: 174201
|
|
|
|
|
|
|
|
| |
\headerfile command and representing it in an xml
document. Patch reviewed by Dmitri Gribenko.
// rdar://12397511
llvm-svn: 174109
|
|
|
|
|
|
| |
The tabs slipped in accidentally.
llvm-svn: 172934
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
llvm-svn: 172901
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
llvm-svn: 172900
|
|
|
|
|
|
|
|
|
| |
We can directly the number of the kind instead of going through the
completionChunkKindMap.
Formatting time changes from 0.84 to 0.72 seconds.
llvm-svn: 172899
|
|
|
|
|
|
| |
Patch by Matthew King!
llvm-svn: 171423
|
|
|
|
|
|
|
|
| |
'file' builtin, and fix up a docstring a little.
Hat tip to Sebastian Kreft Carreno at Google for noticing the bug.
llvm-svn: 169887
|
|
|
|
|
|
| |
Patch provided by Matthias Kleine <matthias_kleine@gmx.de>
llvm-svn: 167216
|
|
|
|
|
|
|
|
|
|
|
| |
XML comment for declarations which pretty-prints
declaration. I had to XFAIL one test annotate-comments.cpp.
This test is currently unmaintainable as written.
Dmitri G., can you see what we can do about this test.
We should change this test such that adding a new tag does not wreck
havoc to the test.
llvm-svn: 166130
|
|
|
|
| |
llvm-svn: 165375
|
|
|
|
|
|
| |
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
|