summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add clang_getDiagnosticSetFromTU() to libclang. Fixes ↵Ted Kremenek2011-12-091-0/+9
| | | | | | <rdar://problem/10553081>. llvm-svn: 146287
* [libclang] Indexing API: provide both the semantic and the lexical container.Argyrios Kyrtzidis2011-12-071-2/+7
| | | | | | They are generally the same except in C++ cases like out-of-line member functions. llvm-svn: 146069
* [libclang] Introduce CXIdxEntityLanguage that indicates the languageArgyrios Kyrtzidis2011-12-071-2/+9
| | | | | | of an indexed entity. llvm-svn: 146067
* [libclang] API enhancements by Joe Groff!Argyrios Kyrtzidis2011-12-061-4/+107
| | | | | | | | | | | | | - Exposes a CXType_Vector type kind for vector types. - Adds generalized versions of the clang_getArrayElementType and clang_getArraySize functions, named clang_getElementType and clang_getNumElements, which work on array, vector, or complex types. - Adds additional functions for querying function types. clang_isFunctionTypeVariadic returns true if a function type is variadic. clang_getFunctionCallingConv returns an enumeration value indicating the calling convention of the function type. clang_getNumArgTypes returns the number of static argument types, and clang_getArgType gets the type of an argument. - Adds a clang_getTypedefDeclUnderlyingType function to get the underlying type from a TypedefDecl cursor. - Adds a clang_getEnumDeclIntegerType function to get the integer type from an EnumDecl cursor. - Adds clang_getEnumConstantDeclValue and clang_getEnumConstantDeclUnsignedValue functions to get the value of an EnumConstantDecl as a signed or unsigned long long, respectively. - Exposes a CXCursor_AsmLabelAttr cursor kind for __asm__("label") attributes. - Alters clang_getCursorSpelling to return the label value for AsmLabelAttr-kind cursors. llvm-svn: 145972
* [libclang] When indexing a field in a C++ class, return an entityArgyrios Kyrtzidis2011-12-051-1/+2
| | | | | | of kind CXIdxEntity_CXXInstanceVariable. rdar://10522503. llvm-svn: 145859
* include/clang*/Makefile: Tweak installation to work with CLANG_SRCDIR.NAKAMURA Takumi2011-12-051-2/+2
| | | | llvm-svn: 145800
* Install c-index-test and clang-c/Index.h as internal files. rdar://10217046Bob Wilson2011-11-281-4/+6
| | | | | | | | | Specify that these files should be installed to the optional internal install location as specified by configure's --with-internal-prefix. If that option is not used, they'll be installed to the default prefix as before. llvm-svn: 145235
* [libclang] Indexing API: Support C++ symbols.Argyrios Kyrtzidis2011-11-221-11/+106
| | | | llvm-svn: 145058
* [libclang] Indexing API:Argyrios Kyrtzidis2011-11-181-6/+33
| | | | | | | | | -For indexDeclaration, also pass the declaration attributes as an array of cursors. -Rename CXIndexOpt_OneRefPerFile -> CXIndexOpt_SuppressRedundantRefs, and only pass a reference if a declaration/definition does not exist in the file. -Other fixes. llvm-svn: 144942
* [libclang] Introduce a new function to apply the indexing callbacks on an ↵Argyrios Kyrtzidis2011-11-151-4/+42
| | | | | | | | existing CXTranslationUnit, mainly to be used for indexing a PCH. llvm-svn: 144623
* [libclang] Slight changes to the indexing API and bigger internal changes ↵Argyrios Kyrtzidis2011-11-141-16/+21
| | | | | | for it. llvm-svn: 144577
* [libclang] Further simplify the indexing API.Argyrios Kyrtzidis2011-11-121-208/+44
| | | | | | | That stuff can be added later on if we need them. Also add some const goodness. llvm-svn: 144446
* Fix some typos, grammar errors, etc. in cursor kind descriptionsDouglas Gregor2011-11-111-4/+4
| | | | llvm-svn: 144412
* include/clang-c/Index.h: Update CINDEX_LINKAGE on 6 decls. Corresponds to ↵NAKAMURA Takumi2011-11-111-5/+6
| | | | | | libclang.exports in r144343 llvm-svn: 144357
* [libclang] Simplify the indexing API.Argyrios Kyrtzidis2011-11-111-295/+100
| | | | | | | | Cut down the number of callbacks to more generic ones. Clients can check an enum to find out what kind of declaration it is and they can call functions to get more specific information than the generic provided info. llvm-svn: 144343
* serialized diagnostics: implement full deserialization of clang diagnostics ↵Ted Kremenek2011-11-101-0/+80
| | | | | | | | via the libclang API. I've tested it on simple cases and it works. Test cases to follow as well as a few tweaks. llvm-svn: 144269
* Fix comment typosDouglas Gregor2011-11-081-1/+1
| | | | llvm-svn: 144120
* [libclang] Add comments.Argyrios Kyrtzidis2011-10-271-0/+339
| | | | llvm-svn: 143111
* [libclang] Index implicit property references.Argyrios Kyrtzidis2011-10-181-0/+6
| | | | llvm-svn: 142355
* [libclang] Introduce a new high level API for indexing clients that assumesArgyrios Kyrtzidis2011-10-171-0/+323
| | | | | | | | | more of the work involved in indexing a translation unit and simplifies client implementations. Only C/ObjC for now, C++ (and comments) to come. llvm-svn: 142233
* Added clang_getCompletionAnnotation and clang_getCompletionNumAnnotations toErik Verbruggen2011-10-141-2/+28
| | | | | | retrieve annotations from completion string. llvm-svn: 141953
* Allow for annotate attributes after access specifiers. When suchErik Verbruggen2011-10-131-1/+2
| | | | | | attributes are found, propagate them to subsequent declarations. llvm-svn: 141861
* [libclang] Removed accidental addition of CXCursor_AnnotateAttr.Erik Verbruggen2011-10-061-2/+1
| | | | llvm-svn: 141292
* [libclang] Fix symbol export for clang_Range_isNull so MSVC won't complain.Erik Verbruggen2011-10-061-2/+3
| | | | llvm-svn: 141282
* Added CXAvailability_NotAccessible to indicate that a declaration is ↵Erik Verbruggen2011-10-061-1/+6
| | | | | | available, but not accessible from the current code completion context. llvm-svn: 141278
* [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-112-79/+45
| | | | | | prefix to 'clang_'. llvm-svn: 134916
* [arcmt] Introduce new '-ccc-arcmt-migrate <path>' ARC migration driver option.Argyrios Kyrtzidis2011-07-091-0/+79
| | | | | | | | | | | | | | | | | | | | 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/+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
OpenPOWER on IntegriCloud