@@ -23,10 +23,8 @@ public partial struct CXTranslationUnitImpl
2323
2424 public partial struct CXUnsavedFile
2525 {
26- [ MarshalAs ( UnmanagedType . LPStr ) ]
27- public string @Filename ;
28- [ MarshalAs ( UnmanagedType . LPStr ) ]
29- public string @Contents ;
26+ [ MarshalAs ( UnmanagedType . LPStr ) ] public string @Filename ;
27+ [ MarshalAs ( UnmanagedType . LPStr ) ] public string @Contents ;
3028 public int @Length ;
3129 }
3230
@@ -39,18 +37,18 @@ public partial struct CXVersion
3937
4038 public partial struct CXFileUniqueID
4139 {
42- public ulong @data0 ; public ulong @data1 ; public ulong @data2 ;
40+ public ulong @data0 ; public ulong @data1 ; public ulong @data2 ;
4341 }
4442
4543 public partial struct CXSourceLocation
4644 {
47- public IntPtr @ptr_data0 ; public IntPtr @ptr_data1 ;
45+ public IntPtr @ptr_data0 ; public IntPtr @ptr_data1 ;
4846 public uint @int_data ;
4947 }
5048
5149 public partial struct CXSourceRange
5250 {
53- public IntPtr @ptr_data0 ; public IntPtr @ptr_data1 ;
51+ public IntPtr @ptr_data0 ; public IntPtr @ptr_data1 ;
5452 public uint @begin_int_data ;
5553 public uint @end_int_data ;
5654 }
@@ -78,7 +76,7 @@ public partial struct CXCursor
7876 {
7977 public CXCursorKind @kind ;
8078 public int @xdata ;
81- public IntPtr @data0 ; public IntPtr @data1 ; public IntPtr @data2 ;
79+ public IntPtr @data0 ; public IntPtr @data1 ; public IntPtr @data2 ;
8280 }
8381
8482 public partial struct CXPlatformAvailability
@@ -98,12 +96,12 @@ public partial struct CXCursorSetImpl
9896 public partial struct CXType
9997 {
10098 public CXTypeKind @kind ;
101- public IntPtr @data0 ; public IntPtr @data1 ;
99+ public IntPtr @data0 ; public IntPtr @data1 ;
102100 }
103101
104102 public partial struct CXToken
105103 {
106- public uint @int_data0 ; public uint @int_data1 ; public uint @int_data2 ; public uint @int_data3 ;
104+ public uint @int_data0 ; public uint @int_data1 ; public uint @int_data2 ; public uint @int_data3 ;
107105 public IntPtr @ptr_data ;
108106 }
109107
@@ -127,15 +125,14 @@ public partial struct CXCursorAndRangeVisitor
127125
128126 public partial struct CXIdxLoc
129127 {
130- public IntPtr @ptr_data0 ; public IntPtr @ptr_data1 ;
128+ public IntPtr @ptr_data0 ; public IntPtr @ptr_data1 ;
131129 public uint @int_data ;
132130 }
133131
134132 public partial struct CXIdxIncludedFileInfo
135133 {
136134 public CXIdxLoc @hashLoc ;
137- [ MarshalAs ( UnmanagedType . LPStr ) ]
138- public string @filename ;
135+ [ MarshalAs ( UnmanagedType . LPStr ) ] public string @filename ;
139136 public IntPtr @file ;
140137 public int @isImport ;
141138 public int @isAngled ;
@@ -162,10 +159,8 @@ public partial struct CXIdxEntityInfo
162159 public CXIdxEntityKind @kind ;
163160 public CXIdxEntityCXXTemplateKind @templateKind ;
164161 public CXIdxEntityLanguage @lang ;
165- [ MarshalAs ( UnmanagedType . LPStr ) ]
166- public string @name ;
167- [ MarshalAs ( UnmanagedType . LPStr ) ]
168- public string @USR ;
162+ [ MarshalAs ( UnmanagedType . LPStr ) ] public string @name ;
163+ [ MarshalAs ( UnmanagedType . LPStr ) ] public string @USR ;
169164 public CXCursor @cursor ;
170165 public IntPtr @attributes ;
171166 public uint @numAttributes ;
@@ -727,7 +722,13 @@ public enum CXCursorKind : uint
727722 @CXCursor_OMPTaskwaitDirective = 245 ,
728723 @CXCursor_OMPFlushDirective = 246 ,
729724 @CXCursor_SEHLeaveStmt = 247 ,
730- @CXCursor_LastStmt = 247 ,
725+ @CXCursor_OMPOrderedDirective = 248 ,
726+ @CXCursor_OMPAtomicDirective = 249 ,
727+ @CXCursor_OMPForSimdDirective = 250 ,
728+ @CXCursor_OMPParallelForSimdDirective = 251 ,
729+ @CXCursor_OMPTargetDirective = 252 ,
730+ @CXCursor_OMPTeamsDirective = 253 ,
731+ @CXCursor_LastStmt = 253 ,
731732 @CXCursor_TranslationUnit = 300 ,
732733 @CXCursor_FirstAttr = 400 ,
733734 @CXCursor_UnexposedAttr = 400 ,
@@ -746,7 +747,8 @@ public enum CXCursorKind : uint
746747 @CXCursor_CUDADeviceAttr = 413 ,
747748 @CXCursor_CUDAGlobalAttr = 414 ,
748749 @CXCursor_CUDAHostAttr = 415 ,
749- @CXCursor_LastAttr = 415 ,
750+ @CXCursor_CUDASharedAttr = 416 ,
751+ @CXCursor_LastAttr = 416 ,
750752 @CXCursor_PreprocessingDirective = 500 ,
751753 @CXCursor_MacroDefinition = 501 ,
752754 @CXCursor_MacroExpansion = 502 ,
@@ -844,10 +846,25 @@ public enum CXCallingConv : uint
844846 @CXCallingConv_IntelOclBicc = 9 ,
845847 @CXCallingConv_X86_64Win64 = 10 ,
846848 @CXCallingConv_X86_64SysV = 11 ,
849+ @CXCallingConv_X86VectorCall = 12 ,
847850 @CXCallingConv_Invalid = 100 ,
848851 @CXCallingConv_Unexposed = 200 ,
849852 }
850853
854+ public enum CXTemplateArgumentKind : uint
855+ {
856+ @CXTemplateArgumentKind_Null = 0 ,
857+ @CXTemplateArgumentKind_Type = 1 ,
858+ @CXTemplateArgumentKind_Declaration = 2 ,
859+ @CXTemplateArgumentKind_NullPtr = 3 ,
860+ @CXTemplateArgumentKind_Integral = 4 ,
861+ @CXTemplateArgumentKind_Template = 5 ,
862+ @CXTemplateArgumentKind_TemplateExpansion = 6 ,
863+ @CXTemplateArgumentKind_Expression = 7 ,
864+ @CXTemplateArgumentKind_Pack = 8 ,
865+ @CXTemplateArgumentKind_Invalid = 9 ,
866+ }
867+
851868 public enum CXTypeLayoutError : int
852869 {
853870 @CXTypeLayoutError_Invalid = - 1 ,
@@ -872,6 +889,18 @@ public enum CX_CXXAccessSpecifier : uint
872889 @CX_CXXPrivate = 3 ,
873890 }
874891
892+ public enum CX_StorageClass : uint
893+ {
894+ @CX_SC_Invalid = 0 ,
895+ @CX_SC_None = 1 ,
896+ @CX_SC_Extern = 2 ,
897+ @CX_SC_Static = 3 ,
898+ @CX_SC_PrivateExtern = 4 ,
899+ @CX_SC_OpenCLWorkGroupLocal = 5 ,
900+ @CX_SC_Auto = 6 ,
901+ @CX_SC_Register = 7 ,
902+ }
903+
875904 public enum CXChildVisitResult : uint
876905 {
877906 @CXChildVisit_Break = 0 ,
@@ -1181,6 +1210,9 @@ public static partial class clang
11811210 [ DllImport ( libraryPath , EntryPoint = "clang_getFile" , CallingConvention = CallingConvention . Cdecl ) ]
11821211 public static extern CXFile getFile ( CXTranslationUnit @tu , [ MarshalAs ( UnmanagedType . LPStr ) ] string @file_name ) ;
11831212
1213+ [ DllImport ( libraryPath , EntryPoint = "clang_File_isEqual" , CallingConvention = CallingConvention . Cdecl ) ]
1214+ public static extern int File_isEqual ( CXFile @file1 , CXFile @file2 ) ;
1215+
11841216 [ DllImport ( libraryPath , EntryPoint = "clang_getNullLocation" , CallingConvention = CallingConvention . Cdecl ) ]
11851217 public static extern CXSourceLocation getNullLocation ( ) ;
11861218
@@ -1475,6 +1507,21 @@ public static partial class clang
14751507 [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getArgument" , CallingConvention = CallingConvention . Cdecl ) ]
14761508 public static extern CXCursor Cursor_getArgument ( CXCursor @C , uint @i ) ;
14771509
1510+ [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getNumTemplateArguments" , CallingConvention = CallingConvention . Cdecl ) ]
1511+ public static extern int Cursor_getNumTemplateArguments ( CXCursor @C ) ;
1512+
1513+ [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getTemplateArgumentKind" , CallingConvention = CallingConvention . Cdecl ) ]
1514+ public static extern CXTemplateArgumentKind Cursor_getTemplateArgumentKind ( CXCursor @C , uint @I ) ;
1515+
1516+ [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getTemplateArgumentType" , CallingConvention = CallingConvention . Cdecl ) ]
1517+ public static extern CXType Cursor_getTemplateArgumentType ( CXCursor @C , uint @I ) ;
1518+
1519+ [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getTemplateArgumentValue" , CallingConvention = CallingConvention . Cdecl ) ]
1520+ public static extern long Cursor_getTemplateArgumentValue ( CXCursor @C , uint @I ) ;
1521+
1522+ [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getTemplateArgumentUnsignedValue" , CallingConvention = CallingConvention . Cdecl ) ]
1523+ public static extern ulong Cursor_getTemplateArgumentUnsignedValue ( CXCursor @C , uint @I ) ;
1524+
14781525 [ DllImport ( libraryPath , EntryPoint = "clang_equalTypes" , CallingConvention = CallingConvention . Cdecl ) ]
14791526 public static extern uint equalTypes ( CXType @A , CXType @B ) ;
14801527
@@ -1565,6 +1612,9 @@ public static partial class clang
15651612 [ DllImport ( libraryPath , EntryPoint = "clang_getCXXAccessSpecifier" , CallingConvention = CallingConvention . Cdecl ) ]
15661613 public static extern CX_CXXAccessSpecifier getCXXAccessSpecifier ( CXCursor @param0 ) ;
15671614
1615+ [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getStorageClass" , CallingConvention = CallingConvention . Cdecl ) ]
1616+ public static extern CX_StorageClass Cursor_getStorageClass ( CXCursor @param0 ) ;
1617+
15681618 [ DllImport ( libraryPath , EntryPoint = "clang_getNumOverloadedDecls" , CallingConvention = CallingConvention . Cdecl ) ]
15691619 public static extern uint getNumOverloadedDecls ( CXCursor @cursor ) ;
15701620
@@ -1649,6 +1699,9 @@ public static partial class clang
16491699 [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getBriefCommentText" , CallingConvention = CallingConvention . Cdecl ) ]
16501700 public static extern CXString Cursor_getBriefCommentText ( CXCursor @C ) ;
16511701
1702+ [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getMangling" , CallingConvention = CallingConvention . Cdecl ) ]
1703+ public static extern CXString Cursor_getMangling ( CXCursor @param0 ) ;
1704+
16521705 [ DllImport ( libraryPath , EntryPoint = "clang_Cursor_getModule" , CallingConvention = CallingConvention . Cdecl ) ]
16531706 public static extern CXModule Cursor_getModule ( CXCursor @C ) ;
16541707
0 commit comments