summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
Commit message (Collapse)AuthorAgeFilesLines
...
* [libclang] Introduce clang_Cursor_isObjCOptional, which returns whether the ↵Argyrios Kyrtzidis2013-07-051-0/+7
| | | | | | | | declaration was affected by "@optional" rdar://14348525. llvm-svn: 185722
* typo.Adrian Prantl2013-05-241-1/+1
| | | | llvm-svn: 182660
* libclang: add a function to check whether a member function is pure virtualDmitri Gribenko2013-05-171-0/+6
| | | | | | Patch by Seth Fowler. llvm-svn: 182139
* [libclang] Introduce clang_Module_getASTFile function that returns the ↵Argyrios Kyrtzidis2013-04-261-0/+7
| | | | | | | | module file where a module object came from. rdar://13743084 llvm-svn: 180643
* Revert "Remove CXCursorSet and related APIs. There are no known clients."Ted Kremenek2013-04-241-0/+32
| | | | | | Apparently there are... llvm-svn: 180176
* Remove CXCursorSet and related APIs. There are no known clients.Ted Kremenek2013-04-241-32/+0
| | | | llvm-svn: 180174
* [libclang] Introduce a CXCursor_ObjCSelfExpr cursor, which is the equivalent ↵Argyrios Kyrtzidis2013-04-231-2/+6
| | | | | | | | of CXCursor_CXXThisExpr for C++ code. rdar://13717006 llvm-svn: 180127
* [libclang] Fix copy-paste error in comment.Argyrios Kyrtzidis2013-04-191-1/+1
| | | | llvm-svn: 179823
* [libclang] Introduce clang_Cursor_isVariadic, which returns non-zero if the ↵Argyrios Kyrtzidis2013-04-181-0/+5
| | | | | | | | given cursor is a variadic function or method. rdar://13667150 llvm-svn: 179819
* [libclang] Introduce clang_Cursor_getObjCDeclQualifiers, to query for 'ObjC ↵Argyrios Kyrtzidis2013-04-181-0/+21
| | | | | | | | | | Qualifiers' written next to the return and parameter types in an ObjC method declarations. rdar://13676977 llvm-svn: 179816
* [libclang] Introduce clang_Cursor_getObjCPropertyAttributes to query the ↵Argyrios Kyrtzidis2013-04-181-1/+30
| | | | | | | | written attributes in a property declaration. rdar://13684512 llvm-svn: 179803
* [libclang] Introduce clang_Location_isInSystemHeader to check if a location ↵Argyrios Kyrtzidis2013-04-121-1/+6
| | | | | | | | resides in a system header. This is a modified patch provided from Mikołaj Siedlarek! llvm-svn: 179384
* [libclang] Improve a doxygen comment, as suggested by Jordan.Argyrios Kyrtzidis2013-04-111-0/+1
| | | | llvm-svn: 179300
* [libclang] Have clang_getCXXAccessSpecifier() also return the access control ↵Argyrios Kyrtzidis2013-04-111-3/+4
| | | | | | | | of a C++ declaration within its parent scope. Suggested by Stefan Seefeld. llvm-svn: 179297
* [libclang] Expose record layout info via new libclang functions:Argyrios Kyrtzidis2013-04-111-1/+78
| | | | | | | | | | | clang_Type_getAlignOf clang_Type_getSizeOf clang_Type_getOffsetOf clang_Cursor_isBitField Patch by Loïc Jaquemet! llvm-svn: 179251
* [libclang] Make clang_Cursor_getArgument work with call-exprs.Argyrios Kyrtzidis2013-04-011-3/+5
| | | | | | Patch by Matthias Kleine! llvm-svn: 178475
* [Modules] Resolve top-headers of modules lazily.Argyrios Kyrtzidis2013-03-131-3/+5
| | | | | | | | | | | This allows resolving top-header filenames of modules to FileEntries when we need them, not eagerly. Note that that this breaks ABI for libclang functions clang_Module_getTopLevelHeader / clang_Module_getNumTopLevelHeaders but this is fine because they are experimental and not widely used yet. llvm-svn: 176975
* [libclang] Change clang_findReferencesInFile and clang_findIncludesInFile to ↵Argyrios Kyrtzidis2013-03-081-16/+28
| | | | | | | | return an enum, as suggested by Jordan. llvm-svn: 176732
* [libclang] Modify clang_findReferencesInFile and clang_findIncludesInFile to ↵Argyrios Kyrtzidis2013-03-081-9/+19
| | | | | | | | | | | return a value. Possible values are: 1 : if a parameter was invalid -1 : if the callback returned CXVisit_Break, otherwise returns 0. llvm-svn: 176716
* [libclang] Introduce clang_findIncludesInFile, that can be used to retrieve ↵Argyrios Kyrtzidis2013-03-081-1/+18
| | | | | | | | | all #import/#include directives in a specific file. It passes to the visitor, that the caller provides, CXCursor_InclusionDirective cursors for all the include directives in a particular file. llvm-svn: 176682
* Revert r175912, "Add support for coldcc to clang" at John's request.Peter Collingbourne2013-02-231-1/+0
| | | | llvm-svn: 175936
* Add support for coldcc to clangPeter Collingbourne2013-02-221-0/+1
| | | | llvm-svn: 175912
* libclang: add clang_getTypeSpelling(CXType CT)Dmitri Gribenko2013-02-151-1/+9
| | | | | | | | | Adds a function clang_getTypeSpelling(CXType CT) that returns a CXString containing the underlying type. Patch by Ben Gertzfield. llvm-svn: 175299
* [libclang] Introduce clang_getFileUniqueID which returns a structArgyrios Kyrtzidis2013-01-261-1/+19
| | | | | | | | | | | for a CXFile containing device/inode/modification time. Intended to be useful as a key associated with a unique file across an indexing session. rdar://13091837 llvm-svn: 173559
* libclang: constness for CXStringDmitri Gribenko2013-01-111-1/+1
| | | | llvm-svn: 172270
* [libclang] Add some constness in CXSourceLocation and CXSourceRange.Argyrios Kyrtzidis2013-01-111-2/+2
| | | | llvm-svn: 172261
* libclang: change CXCursor to store 'const void *' pointers forDmitri Gribenko2013-01-111-1/+1
| | | | | | const-correctness, and update all users llvm-svn: 172252
* clang-c/Index.h: Clarify empty argument with (void) for C89.NAKAMURA Takumi2013-01-101-4/+4
| | | | llvm-svn: 172037
* [libclang] Introduce clang_getFileLocation.Argyrios Kyrtzidis2013-01-041-1/+30
| | | | | | | | | Uses of clang_getSpellingLocation should eventually move to calling clang_getFileLocation, and clang_getSpellingLocation should do what its name represents and actually point at the 'spelling' location, e.g. inside a macro definition if the spelling of a token came from that. llvm-svn: 171486
* Add intel_ocl_bicc calling convention as a function attribute to clang. The ↵Guy Benyei2012-12-251-0/+1
| | | | | | calling convention is already implemented in LLVM. llvm-svn: 171056
* Revert r170500. It over-zealously converted *ALL* things named Attributes, ↵Bill Wendling2012-12-201-1/+1
| | | | | | which is wrong here. llvm-svn: 170721
* Rename the 'Attributes' class to 'Attribute'. It's going to represent a ↵Bill Wendling2012-12-191-1/+1
| | | | | | single attribute in the future. llvm-svn: 170500
* [libclang] Introduce a new indexing mode where we skip function bodiesArgyrios Kyrtzidis2012-12-061-8/+21
| | | | | | | | | | | | | | | that were already parsed in the same "indexing session". An indexing session is defined as using the same CXIndexAction object for multiple clang_indexSourceFile calls. Passing CXIndexOpt_SkipParsedBodiesInSession as an indexing option will enable the mode where we try to skip bodies that were already parsed in another translation unit. If a function's body was skipped, the "flags" field in the CXIdxDeclInfo structure will have "CXIdxDeclFlag_Skipped" bit was set. llvm-svn: 169539
* libclang: Add a function to libclang for retrieving the bit width valueDmitri Gribenko2012-12-041-1/+8
| | | | | | Patch by Jyun-Yan You. llvm-svn: 169276
* Introduce CompilationDatabase::getAllCompileCommands() that returns allArgyrios Kyrtzidis2012-12-042-1/+7
| | | | | | compile commands of the database and expose it via the libclang API. llvm-svn: 169226
* [libclang] Add some comments about the version constants for the libclang API.Argyrios Kyrtzidis2012-11-061-0/+8
| | | | llvm-svn: 167489
* [libclang] Introduce clang_Cursor_getReceiverType which returns the CXType forArgyrios Kyrtzidis2012-11-011-1/+7
| | | | | | | | the receiver of an ObjC message expression. rdar://12578643 llvm-svn: 167201
* [libclang] Bump the version number of the libclang API.Argyrios Kyrtzidis2012-10-291-1/+1
| | | | llvm-svn: 166984
* [libclang] Introduce a version constant for the libclang API.Argyrios Kyrtzidis2012-10-291-0/+20
| | | | | | rdar://12587974 llvm-svn: 166980
* [libclang] Invoke a ppIncludedFile callback when indexing implicit module ↵Argyrios Kyrtzidis2012-10-181-0/+5
| | | | | | imports. llvm-svn: 166161
* Add pnaclcall convention to Native Client targets.Derek Schuff2012-10-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Because PNaCl bitcode must be target-independent, it uses some different bitcode representations from other targets (e.g. byval and sret for structures). This means that without additional type information, it cannot meet some native ABI requirements for some targets (e.g. passing structures containing unions by value on x86-64). To allow generation of code which uses the correct native ABIs, we also support triples such as x86_64-nacl, which uses target-dependent IR (as opposed to le32-nacl, which uses byval and sret). To allow interoperation between the two types of code, this patch adds a calling convention attribute to be used in code compiled with the target-dependent triple, which will generate code using the le32-style bitcode. This calling convention does not need to be explicitly supported in the backend because it determines bitcode representation rather than native conventions (the backend just needs to undersand how to handle byval and sret for the Native Client OS). This patch implements __attribute__((pnaclcall)) to generate calls in bitcode according to the le32 bitcode conventions, an attribute which is accepted by any Native Client target, but issues a warning otherwise. llvm-svn: 166065
* [libclang] Improve AST serialization done by ASTUnit::Save().Argyrios Kyrtzidis2012-10-111-4/+6
| | | | | | | | | The ASTUnit needs to initialize an ASTWriter at the beginning of parsing to fully handle serialization of a translation unit that imports modules. Do this by introducing an option to enable it, which corresponds to CXTranslationUnit_ForSerialization on the C API side. llvm-svn: 165717
* [libclang] Fix the comments, as suggested by Dmitri.Argyrios Kyrtzidis2012-10-061-10/+11
| | | | llvm-svn: 165353
* [libclang] Now that we have a CXModule object, pass it to theArgyrios Kyrtzidis2012-10-051-11/+5
| | | | | | importedASTFile indexing callback. llvm-svn: 165281
* [libclang] Introduce new C functions that provide information about modules:Argyrios Kyrtzidis2012-10-051-0/+58
| | | | | | | | | | | clang_Cursor_getModule clang_Module_getParent clang_Module_getName clang_Module_getFullName clang_Module_getNumTopLevelHeaders clang_Module_getTopLevelHeader llvm-svn: 165280
* [libclang] Introduce CXCursor_ModuleImportDecl cursor kind, used for a moduleArgyrios Kyrtzidis2012-10-051-1/+9
| | | | | | import declaration. llvm-svn: 165277
* [libclang] Simplify indexing of module imports by handling implicitArgyrios Kyrtzidis2012-10-031-6/+1
| | | | | | imports via ImportDecls. llvm-svn: 165160
* [libclang] Implement the importedASTFile indexing callback to provideArgyrios Kyrtzidis2012-10-021-4/+23
| | | | | | info about imported modules. llvm-svn: 165020
* [libclang] Remove the ParentKind cursor kind from code-completion results.Argyrios Kyrtzidis2012-09-261-2/+1
| | | | | | This is to reduce dependency to cursors for the code-completion results. llvm-svn: 164705
* [libclang] Bring CXCursor_AsmStmt back as an alias for CXCursor_GCCAsmStmt.Argyrios Kyrtzidis2012-09-241-0/+1
| | | | | | | This was renamed in r162632 which was badness because the C API needs to be stable. rdar://12360096 llvm-svn: 164547
OpenPOWER on IntegriCloud