summaryrefslogtreecommitdiffstats
path: root/clang/test/Index
Commit message (Collapse)AuthorAgeFilesLines
* Add IR Mangler for more stable mangling.Eli Bendersky2014-08-011-1/+8
| | | | llvm-svn: 214520
* Exposes a C API to name mangling for a given cursor.Eli Bendersky2014-07-311-0/+23
| | | | | | | | | 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
* [test] Add '-target' option to fix bot failure.Argyrios Kyrtzidis2014-06-211-1/+1
| | | | llvm-svn: 211439
* [PCH] Remove the BackingIvarReferencedInAccessor field from DECL_OBJC_IVAR ↵Argyrios Kyrtzidis2014-06-211-0/+10
| | | | | | | | abbreviation record. Patch by Yiding Jia! llvm-svn: 211438
* No longer allow the -std options to entirely override the -x language ↵Aaron Ballman2014-05-291-2/+1
| | | | | | option. This allows -x cuda -std=c++11, for instance. llvm-svn: 209824
* Fixing a test case which was failing the MSVC build bots. When -std isn't ↵Aaron Ballman2014-05-291-1/+1
| | | | | | | | 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
* Expose CUDA function attributes to the C interface.Eli Bendersky2014-05-281-0/+16
| | | | | | | | Until now all CUDA-specific attributes were represented with CXCursor_UnexposedAttr; now they are actually implemented, including the Python bindings. llvm-svn: 209767
* This test is XFAILed on Windows, but I cannot see a reason as to why it ↵Aaron Ballman2014-05-191-2/+0
| | | | | | | | 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
* [libclang] Introduce clang_Module_isSystem(), which returns non-zero if the ↵Argyrios Kyrtzidis2014-05-151-1/+1
| | | | | | given CXModule is a system one. llvm-svn: 208846
* [liblang] Introduce clang_getModuleForFile, which given a CXFile header ↵Argyrios Kyrtzidis2014-05-141-7/+7
| | | | | | file, returns the module that contains it, if one exists. llvm-svn: 208822
* [libclang] Add attribute support for 'pure', 'const' and 'noduplicate'.Joey Gouly2014-05-011-0/+10
| | | | | | This bumps CINDEX_VERSION_MINOR up (to 26). llvm-svn: 207767
* Comment parsing: remove HTML attribute validationDmitri Gribenko2014-04-302-11/+11
| | | | | | | | | | | | 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
* [Index/DocComments] When cloning a full comment, pick the template ↵Argyrios Kyrtzidis2014-04-271-0/+15
| | | | | | | | | | 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
* Comment parsing: close a hole in CDATA escaping in XML outputDmitri Gribenko2014-04-221-0/+12
| | | | llvm-svn: 206886
* Comment parsing: in the generated XML file, mark HTML that is safe to passDmitri Gribenko2014-04-222-3/+40
| | | | | | | | | | | 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
* clang/test/Index/pch-with-errors.c: Remove XFAIL added in r206294. It has ↵NAKAMURA Takumi2014-04-191-3/+0
| | | | | | been fixed since r206644. llvm-svn: 206685
* Honour -ivfsoverlay in ASTUnit to match clangBen Langmuir2014-04-155-0/+55
| | | | | | | This allows code indexing, etc. to use the VFS in the same way as the compiler. llvm-svn: 206309
* Mark clang/test/Index/pch-with-errors.c as XFAIL:mingw for now. Investigating.NAKAMURA Takumi2014-04-151-0/+3
| | | | | | This has been failing since r206202. llvm-svn: 206294
* Allow multiple modules with the same name to coexist in the module cacheBen Langmuir2014-04-142-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Handle difference in signedness of 'char' in test/Index/print-type.c{,pp}Anders Waldenborg2014-04-092-2/+2
| | | | llvm-svn: 205922
* Make c-index-test -test-print-type include pointeekind for pointer typesAnders Waldenborg2014-04-093-16/+16
| | | | | | | | | 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
* [Preprocessor/CodeComplete] Don't add include guard macros to ↵Argyrios Kyrtzidis2014-04-092-10/+19
| | | | | | code-completion results. llvm-svn: 205917
* libclang: add clang_CXXMethod_isConst API that allows to determine if a C++Dmitri Gribenko2014-04-072-13/+35
| | | | | | | | member function or member function template is declared 'const' Patch by Kevin Funk with testcase updates by me. llvm-svn: 205714
* libclang/libIndex: USR generation: mangle source location into USRs for macros,Dmitri Gribenko2014-03-282-2/+26
| | | | | | unless the macro comes from a system header llvm-svn: 205064
* Comment parsing: use different comment styles in different test casesDmitri Gribenko2014-03-271-2/+2
| | | | llvm-svn: 204944
* Comment parsing: attach comments to enums declared using the NS_ENUM macroDmitri Gribenko2014-03-272-12/+30
| | | | | | Previously we would only attach comments to the typedef. llvm-svn: 204942
* Add a module cache path to the test that uses -fmodulesDmitri Gribenko2014-03-271-1/+2
| | | | llvm-svn: 204938
* Comment parsing: when comment ranges are deserialized from multiple modules,Dmitri Gribenko2014-03-274-12/+44
| | | | | | | | | 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
* clang/test/Index/preamble-reparse-warn-*.c: Stabilize on win32.NAKAMURA Takumi2014-03-102-7/+4
| | | | llvm-svn: 203446
* clang/test/Index/preamble-reparse-warn-*.c: Use @LINE in FileCheck.NAKAMURA Takumi2014-03-102-5/+5
| | | | llvm-svn: 203445
* [libclang] Don't pad the main buffer for the preamble.Argyrios Kyrtzidis2014-03-092-0/+26
| | | | | | | | | 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
* retain-comments-from-system-headers.c: Flush module cache, or incremental ↵NAKAMURA Takumi2014-03-091-0/+1
| | | | | | test would fail since r203317. llvm-svn: 203367
* [Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is ↵Argyrios Kyrtzidis2014-03-071-5/+11
| | | | | | | | | | TU_Prefix avoid warning for unused macros. rdar://15034698 llvm-svn: 203213
* [code-completion] Add a couple of test cases suggested by Jordan, and a FIXME.Argyrios Kyrtzidis2014-03-051-1/+9
| | | | llvm-svn: 202995
* [AST] A "Class<P>" type should not have '*' when printed out.Argyrios Kyrtzidis2014-03-051-0/+11
| | | | | | rdar://14309030 llvm-svn: 202941
* [libclang] Have clang_getCursorSpelling() return the string for a ↵Argyrios Kyrtzidis2014-03-032-81/+88
| | | | | | | | CXCursor_ObjCStringLiteral or CXCursor_StringLiteral cursor. rdar://16206459 llvm-svn: 202745
* libclang: New functions clang_Type_getNumTemplateArguments,Dmitri Gribenko2014-02-271-29/+68
| | | | | | | | | | clang_Type_getTemplateArgument Note that these functions don't handle variadic templates -- see tests. Patch by Matthieu Nottale and Philippe Daouadi. llvm-svn: 202406
* Pretty Printer: Print constexpr and ref qualifiers. Don't print return types ↵Benjamin Kramer2014-02-253-3/+3
| | | | | | on destructors. llvm-svn: 202181
* Reapply "Pretty Printer: Fix printing of conversion operator decls and calls."Benjamin Kramer2014-02-251-1/+1
| | | | | | There were many additional tests that had the bad behavior baked in. llvm-svn: 202174
* [Index] Make the USRs more stable.Argyrios Kyrtzidis2014-02-235-20/+20
| | | | | | | | | - 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
* [code-completion] Style guideline for Cocoa has custom accessor in property ↵Argyrios Kyrtzidis2014-02-201-6/+6
| | | | | | | | declarations without spaces around '='. rdar://16059171 llvm-svn: 201765
* Introduce the feature "can-remove-opened-file" to suppress tests. [PR18856]NAKAMURA Takumi2014-02-161-1/+1
| | | | llvm-svn: 201482
* libclang: report error code for bad PCH filesDmitri Gribenko2014-02-121-0/+14
| | | | | | | | | | | | | | | | | | | 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
* [libclang] While visiting a C++ destructor decl, keep the type identifier ↵Argyrios Kyrtzidis2014-02-091-1/+7
| | | | | | | | | | associated with the decl, don't turn it into a type ref. rdar://15907618 llvm-svn: 201042
* Report a correct end location for nameless parameters.Benjamin Kramer2014-02-028-20/+27
| | | | | | | | | | | | | | | 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
* Fix this test and don't run it in ASan bootstrapAlexey Samsonov2014-01-281-2/+2
| | | | llvm-svn: 200291
* When formatting a C++-only declaration name, enable C++ mode in the formatter'sRichard Smith2014-01-221-1/+1
| | | | | | | | | 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
* clang/test/Index/recursive-cxx-member-calls.cpp: Add "-target" rather than ↵NAKAMURA Takumi2014-01-141-4/+2
| | | | | | XFAILing. llvm-svn: 199201
* Disable this test for windows buildersDavid Majnemer2014-01-141-0/+2
| | | | | | | 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
* Preserve -fretain-comments-from-system-headers in modulesBen Langmuir2014-01-092-1/+8
| | | | | | | | 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
OpenPOWER on IntegriCloud