summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
Commit message (Collapse)AuthorAgeFilesLines
...
* Report memory usage for global code completion results in CXTUMemoryUsage.Ted Kremenek2011-04-181-8/+7
| | | | llvm-svn: 129733
* Unbreak the MSVC build: Don't mix variable declarations and statements in a ↵Francois Pichet2011-04-181-2/+4
| | | | | | .c file. llvm-svn: 129732
* Add libclang API to query how much memory is used by a CXTranslationUnit. ↵Ted Kremenek2011-04-181-4/+32
| | | | | | | | This is a WIP. Currently we report the amount used for expressions, types, identifiers, and selectors. llvm-svn: 129730
* c-index-test.c: Fix cygwin warning not to pass signed char to islower(c).NAKAMURA Takumi2011-03-091-1/+1
| | | | | | | | | | Cygwin's ctype.h says; /* These macros are intentionally written in a manner that will trigger a gcc -Wall warning if the user mistakenly passes a 'char' instead of an int containing an 'unsigned char'. (snip) */ llvm-svn: 127308
* [PR9321] "make install" does not need install c-index-test. It is used for ↵NAKAMURA Takumi2011-02-281-0/+3
| | | | | | testing. llvm-svn: 126634
* Re-instate r125819 and r125820 with no functionality changePeter Collingbourne2011-02-192-3/+2
| | | | llvm-svn: 126060
* Revert 125820 and 125819 to fix PR9266.Rafael Espindola2011-02-192-2/+3
| | | | llvm-svn: 126050
* Move CompilerInstance::LLVMContext and LLVMContext ownership to CodeGenActionPeter Collingbourne2011-02-182-3/+2
| | | | | | | | | This removes the final dependency edge from any lib outside of CodeGen to core. As a result we can, and do, trim the dependency on core from libclang, PrintFunctionNames, the unit tests and c-index-test. While at it, review and trim other unneeded dependencies. llvm-svn: 125820
* CMake: LLVM_NO_RTTI must be obsolete now!NAKAMURA Takumi2011-02-101-2/+0
| | | | llvm-svn: 125275
* If any Fix-Its attached to a diagnostic have invalid source locationsDouglas Gregor2011-02-031-1/+1
| | | | | | | or source locations that refer into a macro instantiation, delete all of the Fix-Its on that diagnostic. llvm-svn: 124833
* Teach Diagnostic::setClient() to free the existing, ownedDouglas Gregor2011-01-311-0/+2
| | | | | | client. Fixes a libclang leak. llvm-svn: 124614
* Teach ASTUnit to save the specified target features, sinceDouglas Gregor2011-01-271-1/+1
| | | | | | | TargetInfo::CreateTargetInfo() mangles the target options in a way that is not idempotent. Fixes <rdar://problem/8807535>. llvm-svn: 124382
* Add libclang functions to determine the const/volatile/restrictDouglas Gregor2011-01-271-0/+6
| | | | | | qualifiers on a CXType. Patch from Stefan Seefeld, test by me. llvm-svn: 124377
* De-C99-ify for loopDouglas Gregor2010-11-301-1/+2
| | | | llvm-svn: 120395
* Teach c-index-test to reparse the source file a few times when testingDouglas Gregor2010-11-301-17/+36
| | | | | | | | clang_getCursor() via -cursor-at=??? and CINDEXTEST_EDITING is set in the environment. This mirrors how we test code completion and source-loading in the presence of this environment variable. llvm-svn: 120392
* Extend the libclang diagnostic API to provide information about theDouglas Gregor2010-11-191-1/+2
| | | | | | option name, category ID, and category name corresponding to a diagnostic. llvm-svn: 119802
* Change CXTranslationUnit to not directly cast to an ASTUnit*,Ted Kremenek2010-11-161-3/+3
| | | | | | | | | | | | | | | | | | | but to wrap both an ASTUnit and a "string pool" that will be used for fast USR generation. This requires a bunch of mechanical changes, as there was a ton of code that assumed that CXTranslationUnit and ASTUnit* were the same. Along with this change, introduce CXStringBuf, which provides an llvm::SmallVector<char> backing for repeatedly generating CXStrings without a huge amount of malloc() traffic. This requires making some changes to the representation of CXString by renaming a few fields (but keeping the size of the object the same). llvm-svn: 119337
* Move CXString creation/management routines intoTed Kremenek2010-11-161-3/+3
| | | | | | | their own .cpp file and make the interpretation of its flags private. llvm-svn: 119319
* Tweak libclang's heuristics for building precompiled preambles andDouglas Gregor2010-11-151-0/+5
| | | | | | | | caching global code-completion results. In particular, don't perform either operation the first time we parse, but do both after the first reparse. llvm-svn: 119285
* ntroduce clang_getSpellingLocation() into libclang, to provide theDouglas Gregor2010-11-091-22/+22
| | | | | | | | | | | | | | location where we're spelling a token even within a macro. clang_getInstantiationLocation() tells where we instantiated the macro. I'm still not thrilled with the CXSourceLocation/CXSourceRange APIs, since they gloss over macro-instantiation information. Take 2: this time, adjusted tests appropriately and used a "simple" approach to the spelling location. llvm-svn: 118495
* Revert r118492, which didn't update all of its tests accordinglyDouglas Gregor2010-11-091-22/+22
| | | | llvm-svn: 118494
* Introduce clang_getSpellingLocation() into libclang, to provide theDouglas Gregor2010-11-091-22/+22
| | | | | | | | | | | location where we're spelling a token even within a macro. clang_getInstantiationLocation() tells where we instantiated the macro. I'm still not thrilled with the CXSourceLocation/CXSourceRange APIs, since they gloss over macro-instantiation information. llvm-svn: 118492
* Adjust return type of thread_runner.Benjamin Kramer2010-11-041-2/+1
| | | | llvm-svn: 118259
* c-index-test: Switch to using clang_executeOnThread instead of mucking aboutDaniel Dunbar2010-11-041-27/+1
| | | | | | with system specific stuff. llvm-svn: 118224
* Add an environment variable that allows us to turn off threading in c-index-testDouglas Gregor2010-10-271-0/+3
| | | | llvm-svn: 117449
* Extend the preprocessing record and libclang with support forDouglas Gregor2010-10-201-0/+7
| | | | | | | | | inclusion directives, keeping track of every #include, #import, etc. in the translation unit. We keep track of the source location and kind of the inclusion, how the file name was spelled, and the underlying file to which the inclusion resolved. llvm-svn: 116952
* Call clang_disposeTokens() when we are done with the set of tokens.Ted Kremenek2010-10-201-0/+1
| | | | llvm-svn: 116946
* This patch remove the Win32 XFAIL from remap-complete.cFrancois Pichet2010-10-121-1/+1
| | | | | | The problem was that text files were open in text mode and Microsoft implementation of fread and write will try to do nasty line-feed conversion which make the line position no longer valid. The fix is to read and write files in binary mode. llvm-svn: 116286
* Switch c-index-test from clang_codeComplete() over toDouglas Gregor2010-10-111-27/+29
| | | | | | | | | | clang_codeCompleteAt(). This uncovered a few issues with the latter: - ASTUnit wasn't saving/restoring diagnostic state appropriately between reparses and code completions. - "Overload" completions weren't being passed through to the client llvm-svn: 116241
* Eliminate clang_setUseExternalASTGeneration() from libclang. BetweenDouglas Gregor2010-10-111-10/+0
| | | | | | | | | improvements to the compiler and the introduction of crash recovery, it no longer makes sense to allow this mode. Moreover, this eliminates one use of the "clang" executable from within libclang; we'd like them all to go away. llvm-svn: 116207
* Fix the mapping of vertical-space cursor kinds to produce a newline,Douglas Gregor2010-10-081-0/+5
| | | | | | rather than a space. llvm-svn: 116097
* Introduce a new libclang function, clang_getCursorDisplayName(), whichDouglas Gregor2010-10-021-2/+11
| | | | | | | | produces a simple "display" name that captures the arguments/parameters for a function, function template, class template, or class template specialization. llvm-svn: 115428
* Extend libclang with an API that determines, given a C++ virtualDouglas Gregor2010-10-011-1/+18
| | | | | | | member function or an Objective-C method, which other member functions/methods it overrides. llvm-svn: 115338
* perform_code_completion(): fix type declaration for TU.Dawn Perchik2010-09-301-1/+1
| | | | llvm-svn: 115224
* c-index-test: Run inside a separate thread iff we have pthread support, toDaniel Dunbar2010-09-301-1/+55
| | | | | | | ensure we at least get some minimal testing of running in a multithreaded environment (for example, having a reduced stack size). llvm-svn: 115200
* I will not mix declaration and statements in C90.Douglas Gregor2010-09-141-1/+2
| | | | | | | | | | | | | | | | | | | | | I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. I will not mix declaration and statements in C90. llvm-svn: 113821
* Revert "CMake: Update to use standard CMake dependency tracking facilities ↵Michael J. Spencer2010-09-131-4/+8
| | | | | | | | | | | | | instead" This reverts commit r113631 Conflicts: CMakeLists.txt lib/CodeGen/CMakeLists.txt llvm-svn: 113817
* Introduce a new kind of cursor into libclang, which covers a referenceDouglas Gregor2010-09-131-3/+18
| | | | | | | | | to an "overloaded" set of declarations. This cursor kind works for unresolved references to functions/templates (e.g., a call within a template), using declarations, and Objective-C class and protocol forward declarations. llvm-svn: 113805
* CMake: Update to use standard CMake dependency tracking facilities insteadMichael J. Spencer2010-09-101-8/+4
| | | | | | of whatever we were using before... llvm-svn: 113631
* Clean up CMake dependenciesDouglas Gregor2010-09-091-13/+1
| | | | llvm-svn: 113489
* Introduce a new libclang function,Douglas Gregor2010-09-021-1/+12
| | | | | | | | | clang_getSpecializedCursorTemplate(), which determines the template (or member thereof) that the given cursor specializes or from which it was instantiated. This routine can be used to establish a link between templates and their instantiations/specializations. llvm-svn: 112780
* Implement CXCursor support for walking C++ base specifiers. This includes ↵Ted Kremenek2010-08-271-0/+20
| | | | | | | | adding the API hooks clang_isVirtualBase() and clang_getCXXAccessSpecifier() to query properties of the base specifier. Implements <rdar://problem/8274883>. llvm-svn: 112296
* Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-261-1/+25
| | | | | | | | | | | into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. Provide a libclang function that sorts the results. 3rd try. How embarrassing. llvm-svn: 112180
* Revert r112149, "Move the sorting of code-completion results out of the mainDaniel Dunbar2010-08-261-25/+1
| | | | | | path and ...", it is failing tests. llvm-svn: 112161
* Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-261-1/+25
| | | | | | | | | into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. Provide a libclang function that sorts the results. llvm-svn: 112149
* Add libclang API hook "clang_getIBOutletCollectionType" to query the ↵Ted Kremenek2010-08-261-0/+8
| | | | | | collection type for iboutletcollection attributes. llvm-svn: 112139
* Revert "Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-261-85/+1
| | | | | | | into the clients", because the C standard library sucks. Where's my stable sort, huh? llvm-svn: 112121
* Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-251-1/+85
| | | | | | | into the clients, e.g., the printing code-completion consumer and c-index-test. Clients may want to re-sort the results anyway. llvm-svn: 112095
* Introduce new libclang API functions that determine the availabilityDouglas Gregor2010-08-231-1/+27
| | | | | | | of a cursor or code-completion result, e.g., whether that result refers to an unavailable, deleted, or deprecated declaration. llvm-svn: 111858
* Another step in the process of making the parser depend on Sema:John McCall2010-08-202-3/+3
| | | | | | | | | - move DeclSpec &c into the Sema library - move ParseAST into the Parse library Reflect this change in a thousand different includes. Reflect this change in the link orders. llvm-svn: 111667
OpenPOWER on IntegriCloud