summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
Commit message (Collapse)AuthorAgeFilesLines
...
* Extend libclang with a new cursor kind that indicates a reference to aDouglas Gregor2010-08-311-1/+6
| | | | | | | | | template. Such cursors occur, for example, in template specialization types such as vector<int>. Note that we do not handle the super-interesting case where the template name is unresolved, e.g., within a template. llvm-svn: 112636
* Add libclang support for class template partial specializations,Douglas Gregor2010-08-311-1/+3
| | | | | | including a cursor kind, visitation, and USRs. llvm-svn: 112629
* Add a libclang cursor kind, visitation support and USR support for C++Douglas Gregor2010-08-311-1/+4
| | | | | | class templates. llvm-svn: 112627
* Implement basic support for indexing function templates inDouglas Gregor2010-08-311-1/+9
| | | | | | | | | | | | | | libclang. This includes: - Cursor kind for function templates, with visitation logic - Cursor kinds for template parameters, with visitation logic - Visitation logic for template specialization types, qualified type locations - USR generation for function templates, template specialization types, template parameter types. Also happens to fix PR7804, which I tripped across while testing. llvm-svn: 112604
* libclang indexing support for C++ constructors, destructors, andDouglas Gregor2010-08-311-2/+7
| | | | | | | | conversion functions. This introduces new cursor kinds for these three C++ entities, and reworks visitation of function declarations so that we get type-source information for the names. llvm-svn: 112600
* Implement CXCursor support for walking C++ base specifiers. This includes ↵Ted Kremenek2010-08-271-1/+25
| | | | | | | | adding the API hooks clang_isVirtualBase() and clang_getCXXAccessSpecifier() to query properties of the base specifier. Implements <rdar://problem/8274883>. llvm-svn: 112296
* Fix copy-paste in doxygen comment.Ted Kremenek2010-08-271-1/+1
| | | | llvm-svn: 112295
* Move the sorting of code-completion results out of the main path andDouglas Gregor2010-08-261-0/+11
| | | | | | | | | | | 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-11/+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/+11
| | | | | | | | | 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-1/+19
| | | | | | collection type for iboutletcollection attributes. llvm-svn: 112139
* Silence warning about C++-style comments.Peter Collingbourne2010-08-241-7/+15
| | | | llvm-svn: 111875
* Introduce new libclang API functions that determine the availabilityDouglas Gregor2010-08-231-1/+35
| | | | | | | 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-1/+32
| | | | | | later llvm-svn: 111016
* Implement clang_saveTranslationUnit(), which saves a translation unitDouglas Gregor2010-08-131-0/+20
| | | | | | into a PCH/AST file. llvm-svn: 111006
* Add a (currently unused) "options" parameter toDouglas Gregor2010-08-111-3/+44
| | | | | | | | | | 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-21/+24
| | | | | | | | "editing" mode, introduce a separate function clang_defaultEditingTranslationUnitOptions() that retrieves the set of options. No functionality change. llvm-svn: 110613
* Use precompiled preambles for in-process code completion.Douglas Gregor2010-08-091-1/+13
| | | | llvm-svn: 110596
* Give clang_codeCompleteAt() an "options" parameter, and add a newDouglas Gregor2010-08-051-1/+35
| | | | | | | | | 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-1/+71
| | | | | | | | | | | | | | 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/+6
| | | | | | <rdar://problem/8250669>. llvm-svn: 109822
* Basic plumbing for generating a precompiled preamble for anDouglas Gregor2010-07-231-8/+36
| | | | | | | ASTUnit/CXTranslationUnit. We can't actually use this preamble yet, however. llvm-svn: 109202
* Introduce a new C API function, clang_parseTranslationUnit(), whichDouglas Gregor2010-07-211-0/+77
| | | | | | | | | 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
* Introduce a new libclang API, clang_reparseTranslationUnit(), whichDouglas Gregor2010-07-191-0/+38
| | | | | | | | reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. llvm-svn: 108756
* Add CXType support for querying the return type of Objective-C methods. ↵Ted Kremenek2010-06-211-1/+7
| | | | | | | | This is done by adding a clang_getCursorResultType() function (which complements clang_getResultType()). llvm-svn: 106473
* Add CXType support for FunctionNoProto and FunctionProto types. This ↵Ted Kremenek2010-06-211-1/+8
| | | | | | | | includes adding a new function, clang_getResultType(), which returns the result type of the function type. llvm-svn: 106459
* Makefile: Switch Clang Makefiles to always include the top-level Clang Makefile.Daniel Dunbar2010-06-081-2/+2
| | | | | | - This eliminates most dependencies on how Clang is installed relative to LLVM. llvm-svn: 105637
* Remove clang_isFromMainFile(). It doesn't work correctly with ↵Ted Kremenek2010-05-271-6/+0
| | | | | | | | CXDiagnostics, and we shouldn't have an API around that cannot be implemented correctly yet. llvm-svn: 104849
* Introduce priorities into the code-completion results.Douglas Gregor2010-05-261-0/+15
| | | | llvm-svn: 104751
* Add libclang function 'clang_isFromMainFile()' (which just wraps ↵Ted Kremenek2010-05-201-0/+6
| | | | | | SourceManager::isFromMainFile()). llvm-svn: 104208
* Move CXCursor_FirstDecl definition later to make the results more readable ↵Ted Kremenek2010-05-191-1/+1
| | | | | | in the debugger. llvm-svn: 104171
* Remove clang_isDeclarationADefinition() since its functionality is already ↵Ted Kremenek2010-05-191-6/+0
| | | | | | provided by clang_isCursorDefinition(). llvm-svn: 104138
* Add clang support for IBOutletCollection.Ted Kremenek2010-05-191-1/+2
| | | | llvm-svn: 104135
* Add function 'clang_isTagDeclDefinition()' to allow clients of libclang to ↵Ted Kremenek2010-05-181-0/+6
| | | | | | | | distinguish between forward declarations and definitions of structs/classes/enums. llvm-svn: 104075
* Add libclang function 'clang_CXXMethod_isStatic' to query of a C++ methodTed Kremenek2010-05-171-0/+18
| | | | | | is declared static. llvm-svn: 103963
* Add CXType and an initial set of supporting functions to libclang. This ↵Ted Kremenek2010-05-141-0/+118
| | | | | | | | | exposes details of Clang's representation of the C type system to clients. It is nowhere near complete, and will be expanded on demand. llvm-svn: 103809
* Add CXCursor support for LinkageSpecDecl (e.g., 'extern "C"').Ted Kremenek2010-05-071-1/+3
| | | | llvm-svn: 103224
* Add CXCursor support for C++ namespaces.Ted Kremenek2010-05-061-2/+3
| | | | llvm-svn: 103211
* Move include installation steps to better location, inside each include dir ↵Daniel Dunbar2010-04-301-0/+31
| | | | | | | | instead of at the top-level. Also, don't set NO_INSTALL=1 for c-index-test. llvm-svn: 102724
* Make CXLanguage_Invalid the first enum value (with '0' as its value) in ↵Ted Kremenek2010-04-141-2/+2
| | | | | | CXLanguageKind. llvm-svn: 101287
* Add cursor kind for C++ methods.Ted Kremenek2010-04-131-1/+5
| | | | llvm-svn: 101193
* Add 'clang_getCursorLanguage' to return the "language" of the AST element ↵Ted Kremenek2010-04-121-1/+16
| | | | | | (e.g., distinguish between C and Objective-C language features). Currently this only returns results for declarations. llvm-svn: 101070
* Update doxygen comments about lifetime requirements of CXUnsaveFile data ↵Ted Kremenek2010-04-121-2/+6
| | | | | | arguments. llvm-svn: 101054
* Add CIndex support for blocks.Ted Kremenek2010-04-111-1/+5
| | | | llvm-svn: 100989
* Make the CIndex API more resilient to being used on invalid code.Ted Kremenek2010-03-191-1/+2
| | | | llvm-svn: 98981
* Expose macro definitions as CIndex cursors. These can still only beDouglas Gregor2010-03-181-1/+2
| | | | | | generated by clang_annotateTokens(). llvm-svn: 98837
* More token-annotation experimentation, preprocessing the annotatedDouglas Gregor2010-03-181-2/+2
| | | | | | | token sequence to detect macro instantiations (that produce at least token). WIP. llvm-svn: 98826
* Experimental stab at using relexing to identify preprocessorDouglas Gregor2010-03-181-1/+13
| | | | | | | | directives while annotating tokens in CIndex. This functionality should probably be factored out of this routine, but we're not there yet. llvm-svn: 98786
* Rename clang_constructUSR_ObjCategory to clang_constructUSR_ObjCCategory.Ted Kremenek2010-03-151-1/+1
| | | | | | (there was a missing 'C'). llvm-svn: 98554
* Implement several CIndex functions for constructing USRs from C-strings ↵Ted Kremenek2010-03-131-37/+78
| | | | | | instead of AST elements. llvm-svn: 98421
OpenPOWER on IntegriCloud