| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
To link with -static -lclang, linker tries to seek not libclang.so, clang.dll nor libclang.dll.a, but libclang.a. USEDLIBS should have correct dependencies for -static.
(In contrast, USEDLIBS=libclang.so might be enough w/o -static)
FYI, cygwin build (in buildbot) is using -static, due to avoiding weirdness of extremely slower startup lag of clang.exe.
llvm-svn: 152539
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Specify that these files should be installed to the optional internal
install location as specified by configure's --with-internal-prefix.
If that option is not used, they'll be installed to the default prefix
as before.
llvm-svn: 145235
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
for it.
llvm-svn: 144577
|
|
|
|
|
|
| |
disposed.
llvm-svn: 144514
|
|
|
|
|
|
| |
-test-load-source-reparse
llvm-svn: 144509
|
|
|
|
|
|
|
| |
That stuff can be added later on if we need them.
Also add some const goodness.
llvm-svn: 144446
|
|
|
|
| |
llvm-svn: 144386
|
|
|
|
|
|
|
|
|
| |
including a test case for no issues, multiple issues, and
a single issue. Along the way, tweak c-index-test -read-diagnostics output so it is easier to tell what diagnostics are
child diagnostics.
llvm-svn: 144349
|
|
|
|
|
|
|
|
| |
Cut down the number of callbacks to more generic ones. Clients can check
an enum to find out what kind of declaration it is and they can call functions
to get more specific information than the generic provided info.
llvm-svn: 144343
|
|
|
|
| |
llvm-svn: 144274
|
|
|
|
| |
llvm-svn: 144272
|
|
|
|
|
|
|
|
| |
via the libclang API.
I've tested it on simple cases and it works. Test cases to follow as well as a few tweaks.
llvm-svn: 144269
|
|
|
|
| |
llvm-svn: 143779
|
|
|
|
|
|
|
|
|
|
|
| |
that function
always returning a null file/line/column.
Also add at least one use of clang_getExpansionLocation inside c-index-test that would have
made the tests to catch that.
llvm-svn: 143606
|
|
|
|
|
|
| |
the CINDEXTEST_COMPLETION_NO_CACHING environment variable is present.
llvm-svn: 143604
|
|
|
|
|
|
|
|
| |
which, if set,
will cause c-index-test to return as failed if a compiler error occurred.
llvm-svn: 143243
|
|
|
|
| |
llvm-svn: 142590
|
|
|
|
| |
llvm-svn: 142355
|
|
|
|
| |
llvm-svn: 142354
|
|
|
|
| |
llvm-svn: 142289
|
|
|
|
|
|
|
|
|
| |
more of the work involved in indexing a translation unit and simplifies client
implementations.
Only C/ObjC for now, C++ (and comments) to come.
llvm-svn: 142233
|
|
|
|
|
|
| |
retrieve annotations from completion string.
llvm-svn: 141953
|
|
|
|
| |
llvm-svn: 141281
|