summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c/Index.h
Commit message (Collapse)AuthorAgeFilesLines
...
* [libclang] Introduce clang_findReferencesInFile which accepts a cursor, a file,Argyrios Kyrtzidis2011-10-061-0/+48
| | | | | | | | and a callback and finds all identifier references of the cursor in the file. rdar://7948304 llvm-svn: 141277
* Expose more statement, expression, and declaration kinds in libclang,Douglas Gregor2011-10-051-3/+326
| | | | | | from Manuel Holtgrewe! llvm-svn: 141200
* [libclang] Introduce CXCursor_CXXAccessSpecifier for C++'s ↵Argyrios Kyrtzidis2011-09-301-2/+5
| | | | | | | | public:/private:/protected: specifiers. Patch by Paolo Capriotti! llvm-svn: 140864
* [libclang] Introduce clang_Range_isNull.Argyrios Kyrtzidis2011-09-281-0/+5
| | | | llvm-svn: 140706
* [libclang] Expose array size and element type, patch by Vinay Sajip!Argyrios Kyrtzidis2011-09-271-1/+16
| | | | llvm-svn: 140614
* MSVC is stuck in the 80s.Argyrios Kyrtzidis2011-09-271-3/+1
| | | | llvm-svn: 140597
* [libclang] Introduce clang_Cursor_isNull and clang_Cursor_getTranslationUnit ↵Argyrios Kyrtzidis2011-09-271-0/+12
| | | | | | functions. llvm-svn: 140587
* [libclang] Introduce clang_getPresumedLocation which works like ↵Argyrios Kyrtzidis2011-09-131-0/+43
| | | | | | | | | | clang_getExpansionLocation but takes into account #line directives coming from preprocessed files. Patch by Vinay Sajip! llvm-svn: 139647
* [libclang]Argyrios Kyrtzidis2011-09-131-1/+3
| | | | | | | | -Allow cursor visitation of an attribute using its source range -Add C++ 'final' and 'override' attributes as cursor kinds -Simplify the logic that marks 'final' and 'override' attributes as tokens. llvm-svn: 139609
* Update libclang to have APIs corresponding to the new 'expansion' namingChandler Carruth2011-08-311-3/+17
| | | | | | | | | | | system for macro-backed source locations. The old APIs are preserved for legacy users. This was intended to land with the main work of instantiation -> expansion, but despite running it by Doug over a month ago, I forgot to commit it. Very sorry for that... llvm-svn: 138860
* Eliminate the -chained-pch flag and all of the frontend and libclang options ↵Douglas Gregor2011-08-251-4/+4
| | | | | | associated with it. Chained PCH is the only way to build a PCH file that includes another PCH file llvm-svn: 138597
* Add a new libclang API to return a CXCompletionString for an arbitraryDouglas Gregor2011-08-041-0/+12
| | | | | | cursor, from Connor Wakamo! Addresses <rdar://problem/9087798>. llvm-svn: 136911
* clang_getCXTUResourceUsage: report memory used by HeaderSearch.Ted Kremenek2011-07-261-2/+3
| | | | | | | This required converting the StringMaps to use a BumpPtrAllocator. I measured the compile time and saw no observable regression. llvm-svn: 136190
* clang_getCXTUResourceUsage: Report memory used by data structures in ↵Ted Kremenek2011-07-261-2/+3
| | | | | | SourceManager. llvm-svn: 136189
* Add new libclang API, clang_codeCompleteGetObjCSelector(), whichDouglas Gregor2011-07-261-0/+15
| | | | | | | provides the partial Objective-C selector used in a code completion. From Connor Wakamo! llvm-svn: 136084
* Fix the MSVC build. 2 problems:Francois Pichet2011-07-251-1/+2
| | | | | | | - buildPieces was return a C++ object from inside an extern "C". (MSVC didn't like that) - clang_getCursorReferenceNameRange was missing a CINDEX_LINKAGE causing a link error. llvm-svn: 135983
* Added clang_getCursorReferenceNameRange to libclang to to retrieve parts ofDouglas Gregor2011-07-251-0/+47
| | | | | | a cursor reference, from Erik Verbruggen! llvm-svn: 135920
* Extend libclang with clang_equalRanges, from Erik Verbruggen!Douglas Gregor2011-07-231-0/+8
| | | | llvm-svn: 135860
* New libclang API to expose container type for code completion, fromDouglas Gregor2011-07-211-0/+33
| | | | | | Connor Wakamo! llvm-svn: 135651
* Clean up some comments I missed when switching fromChandler Carruth2011-07-141-4/+4
| | | | | | | | | | NestedMacroInstantiations -> NestedMacroExpansions. With this change, libclang should be completely converted except for uses of SourceManger and SourceLocation APIs, and the C bindings for those APIs. llvm-svn: 135149
* NestedMacroInstantiations -> NestedMacroExpansionsChandler Carruth2011-07-141-1/+11
| | | | | | | | | | | | | | | | This is switches all the interfaces points (and most of the commenst / local variables I saw on my way through) regarding the NestedMacroInstantiations bit. The libclang enums corresponding to this state were renamed, but a legacy enum was added with the old name, and the same value to keep existing clients working. I've added a documentation blurb for it, but let me know if there is a canonical way to document legacy elemenst of the libclang interface. No functionality changed here, even in tests. llvm-svn: 135141
* Update all of the libclang code corresponding to the preprocessorChandler Carruth2011-07-141-1/+2
| | | | | | | | | | | | | | MacroInstantiation -> MacroExpansion rename. Internally, everything is switched. Introduce a new cursor kind enum with the new name, but retain the old name as an alias so that we don't break backwards compatibility. Also update the debug printing routine to use 'macro expansions' as its explicitly not guaranteed to be stable, and mechanically switch the test cases over to that. llvm-svn: 135140
* [arcmt] Move the remapping functions to clang-c/Index.h and change 'arcmt_' ↵Argyrios Kyrtzidis2011-07-111-0/+45
| | | | | | prefix to 'clang_'. llvm-svn: 134916
* Introduce a new libclang aPI function,Douglas Gregor2011-07-071-0/+144
| | | | | | | | | 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
* libclang: Allow callers of clang_saveTranslationUnit() to distinguishDouglas Gregor2011-07-061-2/+38
| | | | | | | between different classes of errors. Addresses most of <rdar://problem/9660328>. llvm-svn: 134495
* Improve the Python bindings for libclang in a few ways, from EliDouglas Gregor2011-07-061-0/+5
| | | | | | | | | | | | | | | | | 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
* Expose @synthesize and @dynamic via their own cursor kinds inDouglas Gregor2011-06-031-1/+5
| | | | | | libclang. Fixes <rdar://problem/9537904>. llvm-svn: 132603
* Add clang_CXXMethod_isVirtual() to libclang, from Erik Verbruggen!Douglas Gregor2011-05-121-0/+7
| | | | llvm-svn: 131230
* Introduce a new libclang parsing flag,Douglas Gregor2011-05-061-1/+12
| | | | | | | | | | | | | CXTranslationUnit_NestedMacroInstantiations, which indicates whether we want to see "nested" macro instantiations (e.g., those that occur inside other macro instantiations) within the detailed preprocessing record. Many clients (e.g., those that only care about visible tokens) don't care about this information, and in code that uses preprocessor metaprogramming, this information can have a very high cost. Addresses <rdar://problem/9389320>. llvm-svn: 130990
* Enhance clang_getCXTUResourceUsage() to return the amount of memory used by ↵Ted Kremenek2011-05-041-2/+4
| | | | | | the Preprocessor's bump allocator as well as those from the PreprocessingRecord. llvm-svn: 130823
* Introduce a new libclang API, clang_isFileMultipleIncludeGuarded(),Douglas Gregor2011-05-041-0/+8
| | | | | | | | 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
* Enhance clang_getCXTUResourceUsage() to report the sizes of the memory ↵Ted Kremenek2011-04-281-4/+5
| | | | | | buffers used by PCH. llvm-svn: 130460
* Enhance clang_getCXTUResourceUsage() to report how much memory is used by ↵Ted Kremenek2011-04-281-2/+4
| | | | | | SourceManager's memory buffers. llvm-svn: 130433
* Enhance clang_getCXTUResourceUsage() to report the amount of memory used by ↵Ted Kremenek2011-04-281-2/+3
| | | | | | ASTContext's side tables. llvm-svn: 130383
* Enhance clang_getCXTUResourceUsage() to report the amount of memory used by ↵Ted Kremenek2011-04-281-2/+3
| | | | | | SourceManager's content cache allocator. llvm-svn: 130380
* Rename 'CXTUMemoryUsage…' to 'CXTUResourceUsage…'.Ted Kremenek2011-04-201-19/+25
| | | | llvm-svn: 129857
* Report memory usage for global code completion results in CXTUMemoryUsage.Ted Kremenek2011-04-181-1/+2
| | | | llvm-svn: 129733
* Add libclang API to query how much memory is used by a CXTranslationUnit. ↵Ted Kremenek2011-04-181-1/+50
| | | | | | | | This is a WIP. Currently we report the amount used for expressions, types, identifiers, and selectors. llvm-svn: 129730
* Support for C++11 (non-template) alias declarations.Richard Smith2011-04-151-2/+4
| | | | llvm-svn: 129567
* Add libclang hook 'clang_toggleCrashRecovery()', which provides a mechanism ↵Ted Kremenek2011-03-181-0/+9
| | | | | | for a client to enable/disable CrashRecovery within libclang function calls. llvm-svn: 127920
* Mention libclang in the Doxygen documentationDouglas Gregor2011-02-231-1/+1
| | | | llvm-svn: 126316
* Add libclang functions to determine the const/volatile/restrictDouglas Gregor2011-01-271-0/+18
| | | | | | 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/+4
| | | | | | also adds a method in ASTContext which encodes FunctionDecls using the same encoding format that is used for Objective-C methods. llvm-svn: 122639
* Teach clang_getCursorSemanticParent() andDouglas Gregor2010-12-211-0/+5
| | | | | | | | clang_getCursorLexicalParent() to cope with class and function templates, along with the parent of the translation unit. Fixes PR8761 and PR8766. llvm-svn: 122324
* Add new libclang hooks for CXCursorSet, aTed Kremenek2010-12-081-1/+32
| | | | | | | 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/+5
| | | | llvm-svn: 119876
* Implement clang_getCanonicalCursor() in libclang, which does the obvious thing.Douglas Gregor2010-11-191-0/+26
| | | | llvm-svn: 119874
* Extend the libclang diagnostic API to provide information about theDouglas Gregor2010-11-191-5/+65
| | | | | | option name, category ID, and category name corresponding to a diagnostic. llvm-svn: 119802
* Make definition of CXTranslationUnitImpl privateTed Kremenek2010-11-171-4/+1
| | | | | | to libclang. llvm-svn: 119585
* Change CXTranslationUnit to not directly cast to an ASTUnit*,Ted Kremenek2010-11-161-2/+5
| | | | | | | | | | | | | | | | | | | 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
OpenPOWER on IntegriCloud