| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 214520
|
| |
|
|
|
|
|
|
|
| |
Inspired by https://gist.github.com/tritao/2766291, and was previously discussed
on cfe-dev: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-June/037577.html
Adding testing capability via c-index-test.
llvm-svn: 214410
|
| |
|
|
| |
llvm-svn: 211439
|
| |
|
|
|
|
|
|
| |
abbreviation record.
Patch by Yiding Jia!
llvm-svn: 211438
|
| |
|
|
|
|
| |
option. This allows -x cuda -std=c++11, for instance.
llvm-svn: 209824
|
| |
|
|
|
|
|
|
| |
specified with an MSVC build, it defaults to -std=c++11, which overrides the -x cuda option. In turn, this causes all CUDA language option checks to fail.
This fix is possibly temporary while we determine whether -x cuda should be considered along with -std=c++11 when setting language options.
llvm-svn: 209808
|
| |
|
|
|
|
|
|
| |
Until now all CUDA-specific attributes were represented with
CXCursor_UnexposedAttr; now they are actually implemented, including the Python
bindings.
llvm-svn: 209767
|
| |
|
|
|
|
|
|
| |
should be failing. The original commit which XFAILed this was r111581, which suggested something was wrong with file remapping, but that may have been subsequently fixed.
Removing the XFAIL, but will watch the build bots to see if any go red because of this. Local testing on Windows succeeds.
llvm-svn: 209130
|
| |
|
|
|
|
| |
given CXModule is a system one.
llvm-svn: 208846
|
| |
|
|
|
|
| |
file, returns the module that contains it, if one exists.
llvm-svn: 208822
|
| |
|
|
|
|
| |
This bumps CINDEX_VERSION_MINOR up (to 26).
llvm-svn: 207767
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Since the community says that a blacklist is not good enough, and I don't have
enough time now to implement a proper whitelist, let's just remove the
attribute validation.
But, nevertheless, we can still communicate in the generated XML if our parser
found an issue with the HTML. But this bit is best-effort and is specifically
called out in the schema as such.
llvm-svn: 207712
|
| |
|
|
|
|
|
|
|
|
| |
parameters from the original FullComment,
if the parameters are not already set (e.g. because it is a typedef).
Fixes crash of rdar://16128173
llvm-svn: 207382
|
| |
|
|
| |
llvm-svn: 206886
|
| |
|
|
|
|
|
|
|
|
|
| |
through to the output even if the input comment comes from an untrusted source
Attribute filtering is currently based on a blacklist, which right now includes
all event handler attributes (they contain JavaScipt code). It should be
switched to a whitelist, but going over all of the HTML5 spec requires a
significant amount of time.
llvm-svn: 206882
|
| |
|
|
|
|
| |
been fixed since r206644.
llvm-svn: 206685
|
| |
|
|
|
|
|
| |
This allows code indexing, etc. to use the VFS in the same way as the
compiler.
llvm-svn: 206309
|
| |
|
|
|
|
| |
This has been failing since r206202.
llvm-svn: 206294
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To differentiate between two modules with the same name, we will
consider the path the module map file that they are defined by* part of
the ‘key’ for looking up the precompiled module (pcm file).
Specifically, this patch renames the precompiled module (pcm) files from
cache-path/<module hash>/Foo.pcm
to
cache-path/<module hash>/Foo-<hash of module map path>.pcm
In addition, I’ve taught the ASTReader to re-resolve the names of
imported modules during module loading so that if the header search
context changes between when a module was originally built and when it
is loaded we can rebuild it if necessary. For example, if module A
imports module B
first time:
clang -I /path/to/A -I /path/to/B ...
second time:
clang -I /path/to/A -I /different/path/to/B ...
will now rebuild A as expected.
* in the case of inferred modules, we use the module map file that
allowed the inference, not the __inferred_module.map file, since the
inferred file path is the same for every inferred module.
llvm-svn: 206201
|
| |
|
|
| |
llvm-svn: 205922
|
| |
|
|
|
|
|
|
|
| |
The idea is to give visibility to more type kinds, especially for getting
a better grasp of what appears as unexposed type kind with libclang.
Differential Revision: http://reviews.llvm.org/D3325
llvm-svn: 205921
|
| |
|
|
|
|
| |
code-completion results.
llvm-svn: 205917
|
| |
|
|
|
|
|
|
| |
member function or member function template is declared 'const'
Patch by Kevin Funk with testcase updates by me.
llvm-svn: 205714
|
| |
|
|
|
|
| |
unless the macro comes from a system header
llvm-svn: 205064
|
| |
|
|
| |
llvm-svn: 204944
|
| |
|
|
|
|
| |
Previously we would only attach comments to the typedef.
llvm-svn: 204942
|
| |
|
|
| |
llvm-svn: 204938
|
| |
|
|
|
|
|
|
|
| |
correctly order comments in SourceManager::isBeforeInTranslationUnit() order
Unfortunately, this is not as simple as it was implemented previously, and
actually requires doing a merge sort.
llvm-svn: 204936
|
| |
|
|
| |
llvm-svn: 203446
|
| |
|
|
| |
llvm-svn: 203445
|
| |
|
|
|
|
|
|
|
| |
Padding does not seem to be useful currently, and it leads to bogus location if an error
points to the end of the file.
rdar://15836513
llvm-svn: 203370
|
| |
|
|
|
|
| |
test would fail since r203317.
llvm-svn: 203367
|
| |
|
|
|
|
|
|
|
|
| |
TU_Prefix
avoid warning for unused macros.
rdar://15034698
llvm-svn: 203213
|
| |
|
|
| |
llvm-svn: 202995
|
| |
|
|
|
|
| |
rdar://14309030
llvm-svn: 202941
|
| |
|
|
|
|
|
|
| |
CXCursor_ObjCStringLiteral or CXCursor_StringLiteral cursor.
rdar://16206459
llvm-svn: 202745
|
| |
|
|
|
|
|
|
|
|
| |
clang_Type_getTemplateArgument
Note that these functions don't handle variadic templates -- see tests.
Patch by Matthieu Nottale and Philippe Daouadi.
llvm-svn: 202406
|
| |
|
|
|
|
| |
on destructors.
llvm-svn: 202181
|
| |
|
|
|
|
| |
There were many additional tests that had the bad behavior baked in.
llvm-svn: 202174
|
| |
|
|
|
|
|
|
|
| |
- Only include offsets with local (in function scope) symbols, where we don't encode scoping
- Only include the filename with non-system symbols. Presumably the system headers will not provide conflicting definitions.
rdar://15976823
llvm-svn: 201990
|
| |
|
|
|
|
|
|
| |
declarations without spaces around '='.
rdar://16059171
llvm-svn: 201765
|
| |
|
|
| |
llvm-svn: 201482
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit improves libclang to report the error condition when
CXTranslationUnit can not be created because of a stale PCH file. This allows
the caller, for example, to rebuild the PCH file and retry the request.
There two are APIs in libclang that return a CXTranslationUnit and don't
support reporting detailed errors (the only error condition is a NULL result).
For these APIs, a second, superior, version is introduced --
clang_createTranslationUnit2 and clang_parseTranslationUnit2. These functions
return a CXTranslationUnit indirectly and also return an error code. Old
functions are still supported and are nothing more than convenience wrappers
that ignore extended error codes.
As a cleanup, this commit also categorizes some libclang errors in the
functions I had to modify anyway.
llvm-svn: 201249
|
| |
|
|
|
|
|
|
|
|
| |
associated with the decl,
don't turn it into a type ref.
rdar://15907618
llvm-svn: 201042
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ranges before:
void test(void (*)(int), int, float);
~~~~~~~~~~~~~ ~~~~ ~~~~~~
Ranges after:
void test(void (*)(int), int, float);
~~~~~~~~~~~~~ ~~~ ~~~~~
This does not change the actual location of the ParmVarDecl, it still
points to the location where the name would be. PR17970.
llvm-svn: 200640
|
| |
|
|
| |
llvm-svn: 200291
|
| |
|
|
|
|
|
|
|
| |
language options. This is not really ideal -- we should require the right
language options to be passed in, or not require language options to format a
name -- but it fixes a number of *obviously* wrong formattings. Patch by
Olivier Goffart!
llvm-svn: 199778
|
| |
|
|
|
|
| |
XFAILing.
llvm-svn: 199201
|
| |
|
|
|
|
|
| |
This test provides definitions of size_t which are at odds with
-fms-compatibility. Disable this test on those builders (for now).
llvm-svn: 199196
|
| |
|
|
|
|
|
|
| |
Preserves the setting of -fretain-comments-from-system-headers when
building/saving/loading module files. This allows code completion to pick up
documentation comments from system modules.
llvm-svn: 198890
|