|
20 | 20 |
|
21 | 21 | #include <time.h>
|
22 | 22 |
|
23 |
| -#include "clang-c/Platform.h" |
| 23 | +#include "clang-c/BuildSystem.h" |
24 | 24 | #include "clang-c/CXErrorCode.h"
|
25 | 25 | #include "clang-c/CXString.h"
|
26 |
| -#include "clang-c/BuildSystem.h" |
| 26 | +#include "clang-c/ExternC.h" |
| 27 | +#include "clang-c/Platform.h" |
27 | 28 |
|
28 | 29 | /**
|
29 | 30 | * The version constants for the libclang API.
|
|
53 | 54 | CINDEX_VERSION_MAJOR, \
|
54 | 55 | CINDEX_VERSION_MINOR)
|
55 | 56 |
|
56 |
| -#ifdef __cplusplus |
57 |
| -extern "C" { |
58 |
| -#endif |
| 57 | +LLVM_CLANG_C_EXTERN_C_BEGIN |
59 | 58 |
|
60 | 59 | /** \defgroup CINDEX libclang: C Interface to Clang
|
61 | 60 | *
|
@@ -1358,7 +1357,12 @@ enum CXTranslationUnit_Flags {
|
1358 | 1357 | * the case where these warnings are not of interest, as for an IDE for
|
1359 | 1358 | * example, which typically shows only the diagnostics in the main file.
|
1360 | 1359 | */
|
1361 |
| - CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles = 0x4000 |
| 1360 | + CXTranslationUnit_IgnoreNonErrorsFromIncludedFiles = 0x4000, |
| 1361 | + |
| 1362 | + /** |
| 1363 | + * Tells the preprocessor not to skip excluded conditional blocks. |
| 1364 | + */ |
| 1365 | + CXTranslationUnit_RetainExcludedConditionalBlocks = 0x8000 |
1362 | 1366 | };
|
1363 | 1367 |
|
1364 | 1368 | /**
|
@@ -2552,7 +2556,27 @@ enum CXCursorKind {
|
2552 | 2556 | */
|
2553 | 2557 | CXCursor_BuiltinBitCastExpr = 280,
|
2554 | 2558 |
|
2555 |
| - CXCursor_LastStmt = CXCursor_BuiltinBitCastExpr, |
| 2559 | + /** OpenMP master taskloop directive. |
| 2560 | + */ |
| 2561 | + CXCursor_OMPMasterTaskLoopDirective = 281, |
| 2562 | + |
| 2563 | + /** OpenMP parallel master taskloop directive. |
| 2564 | + */ |
| 2565 | + CXCursor_OMPParallelMasterTaskLoopDirective = 282, |
| 2566 | + |
| 2567 | + /** OpenMP master taskloop simd directive. |
| 2568 | + */ |
| 2569 | + CXCursor_OMPMasterTaskLoopSimdDirective = 283, |
| 2570 | + |
| 2571 | + /** OpenMP parallel master taskloop simd directive. |
| 2572 | + */ |
| 2573 | + CXCursor_OMPParallelMasterTaskLoopSimdDirective = 284, |
| 2574 | + |
| 2575 | + /** OpenMP parallel master directive. |
| 2576 | + */ |
| 2577 | + CXCursor_OMPParallelMasterDirective = 285, |
| 2578 | + |
| 2579 | + CXCursor_LastStmt = CXCursor_OMPParallelMasterDirective, |
2556 | 2580 |
|
2557 | 2581 | /**
|
2558 | 2582 | * Cursor that represents the translation unit itself.
|
@@ -6755,7 +6779,6 @@ CINDEX_LINKAGE unsigned clang_Type_visitFields(CXType T,
|
6755 | 6779 | * @}
|
6756 | 6780 | */
|
6757 | 6781 |
|
6758 |
| -#ifdef __cplusplus |
6759 |
| -} |
6760 |
| -#endif |
| 6782 | +LLVM_CLANG_C_EXTERN_C_END |
| 6783 | + |
6761 | 6784 | #endif
|
0 commit comments