| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 162887
|
|
|
|
|
|
| |
a deterministic order, to avoid random test failures.
llvm-svn: 162408
|
|
|
|
| |
llvm-svn: 161656
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
The only caveat is renumbering CXCommentKind enum for aesthetic reasons -- this
breaks libclang binary compatibility, but should not be a problem since API is
so new.
This also fixes PR13372 as a side-effect.
llvm-svn: 161087
|
|
|
|
| |
llvm-svn: 160974
|
|
|
|
|
|
|
|
| |
rendering mode for clients that don't want to interpret Doxygen commands.
Also add a libclang API to query this information.
llvm-svn: 160633
|
|
|
|
| |
llvm-svn: 160582
|
|
|
|
|
|
|
|
|
|
|
| |
HTML fragment.
For testing, c-index-test now has even more output:
* HTML rendering of a comment
* comment AST tree dump in S-expressions like Comment::dump(), but implemented
* with libclang APIs.
llvm-svn: 160577
|
|
|
|
|
|
| |
running it over Clang.
llvm-svn: 159732
|
|
|
|
| |
llvm-svn: 159682
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
given a cursor pointing to a C++ method call or an ObjC message,
returns non-zero if the method/message is "dynamic", meaning:
For a C++ method: the call is virtual.
For an ObjC message: the receiver is an object instance, not 'super' or a
specific class.
rdar://11779185
llvm-svn: 159627
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
attached to a declaration in the completion string.
Since extracting comments isn't free, a new code completion option is
introduced.
A new code completion option that enables including brief comments
into CodeCompletionString should be a, err, code completion option.
But because ASTUnit caches global declarations during parsing before
even completion consumer is created, the option is duplicated as a
translation unit option (in both libclang and ASTUnit, like the option
to cache code completion results).
llvm-svn: 159539
|
|
|
|
| |
llvm-svn: 159486
|
|
|
|
| |
llvm-svn: 159484
|
|
|
|
| |
llvm-svn: 159223
|
|
|
|
|
|
|
|
|
| |
* Retain comments in the AST
* Serialize/deserialize comments
* Find comments attached to a certain Decl
* Expose raw comment text and SourceRange via libclang
llvm-svn: 158771
|
|
|
|
|
|
|
|
| |
a given entity, so that we can tell when the entity was
introduced/deprecated/obsoleted on each platform for which we have an
annotation. Addresses <rdar://problem/11365715>.
llvm-svn: 156347
|
|
|
|
| |
llvm-svn: 154738
|
|
|
|
| |
llvm-svn: 154584
|
|
|
|
|
|
|
|
|
| |
libclang to accurately
get the diagnostic category name from a serialized diagnostic when the version of libclang used
to read the diagnostic file is newer than the clang that emitted the diagnostic file.
llvm-svn: 154567
|
|
|
|
| |
llvm-svn: 154525
|
|
|
|
|
|
|
|
|
|
|
| |
to get at the parameters (and their types) of a function or objc method cursor.
int clang_Cursor_getNumArguments(CXCursor C);
CXCursor clang_Cursor_getArgument(CXCursor C, unsigned i);
rdar://11201527
llvm-svn: 154523
|
|
|
|
|
|
| |
be flushed at exit.
llvm-svn: 154254
|
|
|
|
| |
llvm-svn: 153800
|
|
|
|
|
|
|
|
|
|
| |
After getting a cursor with clang_getCursor for a particular source location,
allows querying the cursor in order to find out if the location points to a
selector identifier in an objc method or message expression, and which selector index it is.
rdar://11158946
llvm-svn: 153781
|
|
|
|
|
|
|
|
|
|
|
| |
It retrieves a source range for a piece that forms the cursors spelling name.
Most of the times there is only one range for the complete spelling but for
objc methods and objc message expressions, there are multiple pieces for each
selector identifier.
Part of rdar://11113120
llvm-svn: 153775
|
|
|
|
|
|
|
|
|
|
|
|
| |
-cursor-at:
-the location of the cursor
-its extent
-its spelling
Part of radar://11113120
llvm-svn: 153707
|
|
|
|
|
|
|
|
|
| |
completion item. For example, if the code completion itself represents
a declaration in a namespace (say, std::vector), then this API
retrieves the cursor kind and name of the namespace (std). Implements
<rdar://problem/11121951>.
llvm-svn: 153545
|
|
|
|
|
|
| |
<rdar://problem/11040133>.
llvm-svn: 153122
|
|
|
|
| |
llvm-svn: 152823
|
|
|
|
|
|
|
|
|
| |
-When printing location avoid printing the filename if it is
same as the main file, not just if it has '.h' extension.
-Make sure we allocate enough bytes for storing as string a
huge line number.
llvm-svn: 152821
|
|
|
|
|
|
|
|
| |
the getter/setter objc method entities that the property is associated with.
rdar://10244558
llvm-svn: 151634
|
|
|
|
|
|
|
|
| |
it can only bring pain when dealing with preprocessor abuse (see: boost).
rdar://10898986
llvm-svn: 151427
|
|
|
|
|
|
|
|
|
| |
clang_getDiagnosticSetFromTU() as
child diagnostics of primary diagnostics. By using the DiagnosticRenderer, these Diagnostics now
match with those generated for serialized diagnostics.
llvm-svn: 150456
|
|
|
|
|
|
| |
that one wants indexing callbacks for function-local symbols as well.
llvm-svn: 148160
|
|
|
|
|
|
| |
so that we can access the attributes of an entity for a reference.
llvm-svn: 146616
|
|
|
|
|
|
|
|
| |
@class forward references.
rdar://10568080&10568103&10568119
llvm-svn: 146496
|
|
|
|
|
|
| |
They are generally the same except in C++ cases like out-of-line member functions.
llvm-svn: 146069
|
|
|
|
| |
llvm-svn: 146068
|
|
|
|
|
|
| |
of an indexed entity.
llvm-svn: 146067
|
|
|
|
|
|
| |
of kind CXIdxEntity_CXXInstanceVariable. rdar://10522503.
llvm-svn: 145859
|
|
|
|
| |
llvm-svn: 145557
|
|
|
|
|
|
|
|
| |
after
indexing, honor all the TU options.
llvm-svn: 145229
|
|
|
|
| |
llvm-svn: 145058
|
|
|
|
| |
llvm-svn: 144947
|
|
|
|
|
|
|
|
|
| |
-For indexDeclaration, also pass the declaration attributes as an array of cursors.
-Rename CXIndexOpt_OneRefPerFile -> CXIndexOpt_SuppressRedundantRefs, and only pass
a reference if a declaration/definition does not exist in the file.
-Other fixes.
llvm-svn: 144942
|
|
|
|
|
|
|
|
| |
implementation and
do not crash if no client container is registered for a declaration context.
llvm-svn: 144765
|
|
|
|
|
|
|
|
| |
report one reference
per file.
llvm-svn: 144763
|
|
|
|
|
|
|
|
| |
existing
CXTranslationUnit, mainly to be used for indexing a PCH.
llvm-svn: 144623
|