summaryrefslogtreecommitdiffstats
path: root/clang/tools/libclang/libclang.darwin.exports
Commit message (Collapse)AuthorAgeFilesLines
* [libclang] Remove libclang.darwin.exports, it's not used anymore.Argyrios Kyrtzidis2011-09-131-150/+0
| | | | llvm-svn: 139661
* [libclang] Introduce clang_getPresumedLocation which works like ↵Argyrios Kyrtzidis2011-09-131-0/+1
| | | | | | | | | | clang_getExpansionLocation but takes into account #line directives coming from preprocessed files. Patch by Vinay Sajip! llvm-svn: 139647
* Add a new libclang API to return a CXCompletionString for an arbitraryDouglas Gregor2011-08-041-0/+1
| | | | | | cursor, from Connor Wakamo! Addresses <rdar://problem/9087798>. llvm-svn: 136911
* Add new libclang API, clang_codeCompleteGetObjCSelector(), whichDouglas Gregor2011-07-261-0/+1
| | | | | | | provides the partial Objective-C selector used in a code completion. From Connor Wakamo! llvm-svn: 136084
* Added clang_getCursorReferenceNameRange to libclang to to retrieve parts ofDouglas Gregor2011-07-251-0/+1
| | | | | | a cursor reference, from Erik Verbruggen! llvm-svn: 135920
* Extend libclang with clang_equalRanges, from Erik Verbruggen!Douglas Gregor2011-07-231-0/+1
| | | | llvm-svn: 135860
* New libclang API to expose container type for code completion, fromDouglas Gregor2011-07-211-0/+2
| | | | | | Connor Wakamo! llvm-svn: 135651
* [arcmt] Move the remapping functions to clang-c/Index.h and change 'arcmt_' ↵Argyrios Kyrtzidis2011-07-111-5/+4
| | | | | | prefix to 'clang_'. llvm-svn: 134916
* [arcmt] Introduce new '-ccc-arcmt-migrate <path>' ARC migration driver option.Argyrios Kyrtzidis2011-07-091-0/+5
| | | | | | | | | | | | | | | | | | | | This is a new mode of migration, where we avoid modifying the original files but we emit temporary files instead. <path> will be used to keep migration process metadata. Currently the temporary files that are produced are put in the system's temp directory but we can put them in the <path> if is necessary. Also introduce new ARC migration functions in libclang whose only purpose, currently, is to accept <path> and provide pairs of original file/transformed file to map from the originals to the files after transformations are applied. Finally introduce the c-arcmt-test utility that exercises the new libclang functions, update arcmt-test, and add tests for the whole process. rdar://9735086. llvm-svn: 134844
* Introduce a new libclang aPI function,Douglas Gregor2011-07-071-0/+1
| | | | | | | | | clang_codeCompleteGetContexts(), that provides the client with information about the context in which code completion has occurred and what kinds of entities make sense as completions at that point. Patch by Connor Wakamo! llvm-svn: 134615
* Improve the Python bindings for libclang in a few ways, from EliDouglas Gregor2011-07-061-0/+1
| | | | | | | | | | | | | | | | | Bendersky. Specifically: * Implemented a new function in libclang: clang_isAttribute * Fixing TranslationUnit.get_includes to only go through the argument * buffer when it contains something. This fixed a crash on Windows * clang_getFileName returns CXString, not char*. Made appropriate * fixes in cindex.py - now the relevant tests pass and we can see the * full locations correctly again (previously there was garbage in * place of the file name) * Exposed clang_getCursorDisplayName to the python bindings llvm-svn: 134460
* Add clang_CXXMethod_isVirtual() to libclang, from Erik Verbruggen!Douglas Gregor2011-05-121-0/+1
| | | | llvm-svn: 131230
* Introduce a new libclang API, clang_isFileMultipleIncludeGuarded(),Douglas Gregor2011-05-041-0/+1
| | | | | | | | which determines whether a particular file is actually a header that is intended to be guarded from multiple inclusions within the same translation unit. llvm-svn: 130808
* Rename 'CXTUMemoryUsage…' to 'CXTUResourceUsage…'.Ted Kremenek2011-04-201-3/+3
| | | | llvm-svn: 129857
* Add libclang API to query how much memory is used by a CXTranslationUnit. ↵Ted Kremenek2011-04-181-0/+3
| | | | | | | | This is a WIP. Currently we report the amount used for expressions, types, identifiers, and selectors. llvm-svn: 129730
* Add libclang hook 'clang_toggleCrashRecovery()', which provides a mechanism ↵Ted Kremenek2011-03-181-1/+2
| | | | | | for a client to enable/disable CrashRecovery within libclang function calls. llvm-svn: 127920
* Add libclang functions to determine the const/volatile/restrictDouglas Gregor2011-01-271-0/+3
| | | | | | qualifiers on a CXType. Patch from Stefan Seefeld, test by me. llvm-svn: 124377
* Expose Objective-C type encodings of declarations to libclang users. This ↵David Chisnall2010-12-301-0/+1
| | | | | | also adds a method in ASTContext which encodes FunctionDecls using the same encoding format that is used for Objective-C methods. llvm-svn: 122639
* Add new libclang hooks for CXCursorSet, aTed Kremenek2010-12-081-1/+6
| | | | | | | DenseMap-backed hashtable for doing client-side management of CXCursors within a set. llvm-svn: 121318
* Implement a simple hash function for libclang cursorsDouglas Gregor2010-11-201-0/+1
| | | | llvm-svn: 119876
* Implement clang_getCanonicalCursor() in libclang, which does the obvious thing.Douglas Gregor2010-11-191-0/+1
| | | | llvm-svn: 119874
* Extend the libclang diagnostic API to provide information about theDouglas Gregor2010-11-191-0/+3
| | | | | | option name, category ID, and category name corresponding to a diagnostic. llvm-svn: 119802
* ntroduce clang_getSpellingLocation() into libclang, to provide theDouglas Gregor2010-11-091-0/+1
| | | | | | | | | | | | | | 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-1/+0
| | | | llvm-svn: 118494
* Introduce clang_getSpellingLocation() into libclang, to provide theDouglas Gregor2010-11-091-0/+1
| | | | | | | | | | | 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
* libclang: Add clang_executeOnThread, for use in c-index-test (and only there,Daniel Dunbar2010-11-041-0/+1
| | | | | | preferably). Good thing c-index-test is written in C!!!! llvm-svn: 118223
* Extend the preprocessing record and libclang with support forDouglas Gregor2010-10-201-0/+1
| | | | | | | | | 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
* Add clang_getLocationForOffset() to libclang, for gives a source location ↵David Chisnall2010-10-151-0/+1
| | | | | | from a character index into a file. llvm-svn: 116587
* Eliminate clang_codeComplete(). libclang clients should be using theDouglas Gregor2010-10-111-1/+0
| | | | | | faster, in-process, more-configurable clang_codeCompleteAt(). llvm-svn: 116245
* Eliminate clang_setUseExternalASTGeneration() from libclang. BetweenDouglas Gregor2010-10-111-1/+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
* Introduce a new libclang function, clang_getCursorDisplayName(), whichDouglas Gregor2010-10-021-0/+1
| | | | | | | | 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-0/+2
| | | | | | | member function or an Objective-C method, which other member functions/methods it overrides. llvm-svn: 115338
* Implement libclang API functions for retrieving the lexical andDouglas Gregor2010-09-221-0/+2
| | | | | | semantic parents of the given cursor. llvm-svn: 114587
* Introduce a new kind of cursor into libclang, which covers a referenceDouglas Gregor2010-09-131-0/+2
| | | | | | | | | 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
* Introduce a new libclang function,Douglas Gregor2010-09-021-0/+1
| | | | | | | | | 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
* Add a new libclang function clang_getTemplateCursorKind(), whichDouglas Gregor2010-08-311-0/+1
| | | | | | | | | | | determines the kind of declaration that would be generated if the given template were instantiated. This allows a client to distinguish among class/struct/union templates and function/member function/static member function templates. Also, teach clang_CXXMethod_isStatic() about function templates. llvm-svn: 112655
* Implement CXCursor support for walking C++ base specifiers. This includes ↵Ted Kremenek2010-08-271-4/+6
| | | | | | | | 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-0/+1
| | | | | | | | | | | 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-1/+0
| | | | | | 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-0/+1
| | | | | | | | | 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/+1
| | | | | | collection type for iboutletcollection attributes. llvm-svn: 112139
* Introduce new libclang API functions that determine the availabilityDouglas Gregor2010-08-231-0/+2
| | | | | | | of a cursor or code-completion result, e.g., whether that result refers to an unavailable, deleted, or deprecated declaration. llvm-svn: 111858
* Add an options parameter to clang_saveTranslationUnit, because we'll want it ↵Douglas Gregor2010-08-131-0/+1
| | | | | | later llvm-svn: 111016
* Implement clang_saveTranslationUnit(), which saves a translation unitDouglas Gregor2010-08-131-0/+1
| | | | | | into a PCH/AST file. llvm-svn: 111006
* Add a (currently unused) "options" parameter toDouglas Gregor2010-08-111-0/+1
| | | | | | | | | | clang_reparseTranslationUnit(), along with a function to retrieve the default recommended reparsing options for a translation unit. Also, add the CXTranslationUnit_CacheCompletionResults flag, which is also currently unused. llvm-svn: 110811
* Instead of having a specific CXTranslationUnit_* option flag forDouglas Gregor2010-08-091-0/+1
| | | | | | | | "editing" mode, introduce a separate function clang_defaultEditingTranslationUnitOptions() that retrieves the set of options. No functionality change. llvm-svn: 110613
* Give clang_codeCompleteAt() an "options" parameter, and add a newDouglas Gregor2010-08-051-0/+1
| | | | | | | | | flags enumeration + default-generating function that allows code-completion to be customized via the libclang API. Plus, turn on spell-checking when performing code completion. llvm-svn: 110319
* Add code-completion support directly to ASTUnit, which performs codeDouglas Gregor2010-08-041-0/+1
| | | | | | | | | | | | | | completion within the translation unit using the same command-line arguments for parsing the translation unit. Eventually, we'll reuse the precompiled preamble to improve code-completion performance, and this also gives us a place to cache results. Expose this function via the new libclang function clang_codeCompleteAt(), which performs the code completion within a CXTranslationUnit. The completion occurs in-process (clang_codeCompletion() runs code completion out-of-process). llvm-svn: 110210
* Add clang_isPODType() for querying if the CXType is POD. Implements ↵Ted Kremenek2010-07-301-0/+1
| | | | | | <rdar://problem/8250669>. llvm-svn: 109822
* Introduce a new C API function, clang_parseTranslationUnit(), whichDouglas Gregor2010-07-211-0/+1
| | | | | | | | | will eventually replace clang_createTranslationUnitFromSourceFile(). The only addition in clang_parseTranslationUnit() is a set of flags that can control how the translation unit is loaded. More interesting flags will be coming. llvm-svn: 109027
OpenPOWER on IntegriCloud