summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
Commit message (Collapse)AuthorAgeFilesLines
...
* [libclang] Include "BuildSystem.h" along with "Index.h"Argyrios Kyrtzidis2014-02-252-3/+4
| | | | llvm-svn: 202104
* Fix gcc warning about C++ style comments.Patrik Hagglund2014-02-171-1/+1
| | | | llvm-svn: 201512
* libclang: report error code for bad PCH filesDmitri Gribenko2014-02-121-25/+100
| | | | | | | | | | | | | | | | | | | This commit improves libclang to report the error condition when CXTranslationUnit can not be created because of a stale PCH file. This allows the caller, for example, to rebuild the PCH file and retry the request. There two are APIs in libclang that return a CXTranslationUnit and don't support reporting detailed errors (the only error condition is a NULL result). For these APIs, a second, superior, version is introduced -- clang_createTranslationUnit2 and clang_parseTranslationUnit2. These functions return a CXTranslationUnit indirectly and also return an error code. Old functions are still supported and are nothing more than convenience wrappers that ignore extended error codes. As a cleanup, this commit also categorizes some libclang errors in the functions I had to modify anyway. llvm-svn: 201249
* 'svn add' files I forgot for r201224 (Add an option to allow Clang verifyDmitri Gribenko2014-02-121-0/+44
| | | | | | source files for a module only once during) llvm-svn: 201225
* Add an option to allow Clang verify source files for a module only once duringDmitri Gribenko2014-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | the build When Clang loads the module, it verifies the user source files that the module was built from. If any file was changed, the module is rebuilt. There are two problems with this: 1. correctness: we don't verify system files (there are too many of them, and stat'ing all of them would take a lot of time); 2. performance: the same module file is verified again and again during a single build. This change allows the build system to optimize source file verification. The idea is based on the fact that while the project is being built, the source files don't change. This allows us to verify the module only once during a single build session. The build system passes a flag, -fbuild-session-timestamp=, to inform Clang of the time when the build started. The build system also requests to enable this feature by passing -fmodules-validate-once-per-build-session. If these flags are not passed, the behavior is not changed. When Clang verifies the module the first time, it writes out a timestamp file. Then, when Clang loads the module the second time, it finds a timestamp file, so it can compare the verification timestamp of the module with the time when the build started. If the verification timestamp is too old, the module is verified again, and the timestamp file is updated. llvm-svn: 201224
* Rename getResultType() on function and method declarations to getReturnType()Alp Toker2014-01-251-2/+2
| | | | | | | | | | | | | | | A return type is the declared or deduced part of the function type specified in the declaration. A result type is the (potentially adjusted) type of the value of an expression that calls the function. Rule of thumb: * Declarations have return types and parameters. * Expressions have result types and arguments. llvm-svn: 200082
* Correct various uses of 'argument' that in fact refer to function parametersAlp Toker2014-01-211-2/+2
| | | | | | Cleanup only. llvm-svn: 199773
* Remove linkage macro from the CXLanguageKind enumReid Kleckner2013-12-301-1/+1
| | | | | | Enums don't have linkage, so clang warns when this expands to dllimport. llvm-svn: 198227
* [libclang] Rename CXSkippedRanges to CXSourceRangeList to make it more ↵Argyrios Kyrtzidis2013-12-061-11/+10
| | | | | | | | future-proof. Suggested by Alp Toker. llvm-svn: 196591
* [libclang] Record ranges skipped by the preprocessor and expose them with ↵Argyrios Kyrtzidis2013-12-051-1/+28
| | | | | | | | libclang. Patch by Erik Verbruggen! llvm-svn: 196487
* Fixes a typo and changes references to the function clang_displayDiagnostic ↵Sylvestre Ledru2013-11-171-3/+3
| | | | | | | | (which was removed in r96823) to clang_formatDiagnostics. Patch by David Wiberg llvm-svn: 194956
* Add an optional mapping from source paths to source contents.Manuel Klimek2013-11-131-0/+18
| | | | | | | | This allows compilation database implementations for distributed build systems to hand all data to the client to make parsing independent of the file system. llvm-svn: 194571
* Miscellaneous speling fixes.Benjamin Kramer2013-10-202-2/+2
| | | | llvm-svn: 193046
* [libclang] Introduce clang_Type_getCXXRefQualifier whichexposes ↵Argyrios Kyrtzidis2013-10-111-0/+17
| | | | | | | | ref-qualifier information of function type. Patch by Che-Liang Chiou! llvm-svn: 192493
* [libclang] Introduce clang_Type_getClassType which returns the class type of ↵Argyrios Kyrtzidis2013-10-031-1/+9
| | | | | | | | a member pointer type. Patch by Che-Liang Chiou! llvm-svn: 191906
* [libclang] Provide location for attributes and expose 'packed' attribute.Argyrios Kyrtzidis2013-09-251-1/+2
| | | | | | Patch by Loïc Jaquemet! llvm-svn: 191345
* Add ms_abi and sysv_abi attribute handling.Charles Davis2013-08-301-0/+2
| | | | | | Based on a patch by Benno Rice! llvm-svn: 189644
* libclang: cleanup unused includes in public headerDmitri Gribenko2013-08-181-2/+0
| | | | llvm-svn: 188625
* Add clang_Location_isFromMainFile() to libclang.Stefanus Du Toit2013-08-081-1/+7
| | | | | | | | Also bump the minor version number and update libclang.exports. Reviewed by: Dmitri Gribenko, Doug Gregor llvm-svn: 187994
* [libclang] Expose the rest of the array types.Argyrios Kyrtzidis2013-07-231-1/+4
| | | | | | Patch by Che-Liang Chiou! llvm-svn: 186967
* OpenMP: basic support for #pragma omp parallelAlexey Bataev2013-07-191-1/+5
| | | | llvm-svn: 186647
* [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
OpenPOWER on IntegriCloud