Skip to content

Commit 9cb5a84

Browse files
authored
Merge pull request #1763 from bstaletic/llvm19
[READY] Upgrade to LLVM19
2 parents 8b61f19 + e6a0baa commit 9cb5a84

File tree

247 files changed

+73767
-73147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+73767
-73147
lines changed

build.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def Exit( self ):
107107
'issue tracker, including the entire output of this script (with --verbose) '
108108
'and the invocation line used to run it.' )
109109

110-
CLANGD_VERSION = '18.1.1'
110+
CLANGD_VERSION = '19.1.0'
111111
CLANGD_BINARIES_ERROR_MESSAGE = (
112112
'No prebuilt Clang {version} binaries for {platform}. '
113113
'You\'ll have to compile Clangd {version} from source '
@@ -1166,30 +1166,30 @@ def GetClangdTarget():
11661166
if OnWindows():
11671167
return [
11681168
( 'clangd-{version}-win64',
1169-
'e5e1daf4553bd526e92a7f56805547673c1b6384f9a2a7b106008a81cd552c37' ),
1169+
'6f4a14f3f144fc39158a7088528e3c8ffa20df516404c319e42351c27dfff063' ),
11701170
( 'clangd-{version}-win32',
1171-
'424708a5405a23fb90f8e48473fa9e6340d988ee3733ce8c73e03f9052cb0a71' ) ]
1171+
'4278d11bebd7c60b945c7aa7457a82e707eeb488d24acdccdc3e354b36b808be' ) ]
11721172
if OnMac():
11731173
if OnArm():
11741174
return [
11751175
( 'clangd-{version}-arm64-apple-darwin',
1176-
'1b6d1b228f70a9903a5299c74347e7767f7fdd019e97abd879b22d56d6d7de83' ) ]
1176+
'b65d43dc82f47a68c8faf6d9711f54a29da9f25c39c3f138466c874359e5efe8' ) ]
11771177
return [
11781178
( 'clangd-{version}-x86_64-apple-darwin',
1179-
'10bed9246718a3d8993f8ccf4fec0168d4bfe7b2bf1d04cf9a8aed5cb7d8f03c' ) ]
1179+
'f3da3d4c97d1f8526299f2c64aaa0dbdeff5daad4e07a1937ad1d81b6407d143' ) ]
11801180
if OnAArch64():
11811181
return [
11821182
( 'clangd-{version}-aarch64-linux-gnu',
1183-
'5ca6d63c9822debfd2f3aa4ec2c7b61eb8f6c8391a3ee7b52051fdb089da16af' ) ]
1183+
'c279514021924c04b0b810bf79adb3cd5d7f061acb3c4b43e4c445671b3d2a18' ) ]
11841184
if OnArm():
11851185
return [
11861186
None, # First list index is for 64bit archives. ARMv7 is 32bit only.
11871187
( 'clangd-{version}-armv7a-linux-gnueabihf',
1188-
'ee6ded7b445317cced97d0002fe944b359990f6e7d7ca09dadd3f835fce7ebbb' ) ]
1188+
'f561e33a90f2053d12202d4a06477c30bf831082c01c228f1935403632bbfa81' ) ]
11891189
if OnX86_64():
11901190
return [
11911191
( 'clangd-{version}-x86_64-unknown-linux-gnu',
1192-
'128451c2689d8157189b4bb60803ca33adb75c67ce07b91b1a91ecacdfbf851f' ) ]
1192+
'93319be9a2ec662be57f7ce77463ac706ae4f559744f05f7cae4da3350a154b5' ) ]
11931193
raise InstallationFailed(
11941194
CLANGD_BINARIES_ERROR_MESSAGE.format( version = CLANGD_VERSION,
11951195
platform = 'this system' ) )

cpp/llvm/include/clang-c/Index.h

Lines changed: 81 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,8 +1644,9 @@ enum CXCursorKind {
16441644
CXCursor_ObjCSelfExpr = 146,
16451645

16461646
/** OpenMP 5.0 [2.1.5, Array Section].
1647+
* OpenACC 3.3 [2.7.1, Data Specification for Data Clauses (Sub Arrays)]
16471648
*/
1648-
CXCursor_OMPArraySectionExpr = 147,
1649+
CXCursor_ArraySectionExpr = 147,
16491650

16501651
/** Represents an @available(...) check.
16511652
*/
@@ -1675,7 +1676,7 @@ enum CXCursorKind {
16751676
CXCursor_ConceptSpecializationExpr = 153,
16761677

16771678
/**
1678-
* Expression that references a C++20 concept.
1679+
* Expression that references a C++20 requires expression.
16791680
*/
16801681
CXCursor_RequiresExpr = 154,
16811682

@@ -1685,7 +1686,12 @@ enum CXCursorKind {
16851686
*/
16861687
CXCursor_CXXParenListInitExpr = 155,
16871688

1688-
CXCursor_LastExpr = CXCursor_CXXParenListInitExpr,
1689+
/**
1690+
* Represents a C++26 pack indexing expression.
1691+
*/
1692+
CXCursor_PackIndexingExpr = 156,
1693+
1694+
CXCursor_LastExpr = CXCursor_PackIndexingExpr,
16891695

16901696
/* Statements */
16911697
CXCursor_FirstStmt = 200,
@@ -2140,7 +2146,23 @@ enum CXCursorKind {
21402146
*/
21412147
CXCursor_OMPScopeDirective = 306,
21422148

2143-
CXCursor_LastStmt = CXCursor_OMPScopeDirective,
2149+
/** OpenMP reverse directive.
2150+
*/
2151+
CXCursor_OMPReverseDirective = 307,
2152+
2153+
/** OpenMP interchange directive.
2154+
*/
2155+
CXCursor_OMPInterchangeDirective = 308,
2156+
2157+
/** OpenACC Compute Construct.
2158+
*/
2159+
CXCursor_OpenACCComputeConstruct = 320,
2160+
2161+
/** OpenACC Loop Construct.
2162+
*/
2163+
CXCursor_OpenACCLoopConstruct = 321,
2164+
2165+
CXCursor_LastStmt = CXCursor_OpenACCLoopConstruct,
21442166

21452167
/**
21462168
* Cursor that represents the translation unit itself.
@@ -2981,6 +3003,8 @@ enum CXCallingConv {
29813003
CXCallingConv_SwiftAsync = 17,
29823004
CXCallingConv_AArch64SVEPCS = 18,
29833005
CXCallingConv_M68kRTD = 19,
3006+
CXCallingConv_PreserveNone = 20,
3007+
CXCallingConv_RISCVVectorCall = 21,
29843008

29853009
CXCallingConv_Invalid = 100,
29863010
CXCallingConv_Unexposed = 200
@@ -3734,6 +3758,59 @@ enum CX_StorageClass {
37343758
CX_SC_Register
37353759
};
37363760

3761+
/**
3762+
* Represents a specific kind of binary operator which can appear at a cursor.
3763+
*/
3764+
enum CX_BinaryOperatorKind {
3765+
CX_BO_Invalid = 0,
3766+
CX_BO_PtrMemD = 1,
3767+
CX_BO_PtrMemI = 2,
3768+
CX_BO_Mul = 3,
3769+
CX_BO_Div = 4,
3770+
CX_BO_Rem = 5,
3771+
CX_BO_Add = 6,
3772+
CX_BO_Sub = 7,
3773+
CX_BO_Shl = 8,
3774+
CX_BO_Shr = 9,
3775+
CX_BO_Cmp = 10,
3776+
CX_BO_LT = 11,
3777+
CX_BO_GT = 12,
3778+
CX_BO_LE = 13,
3779+
CX_BO_GE = 14,
3780+
CX_BO_EQ = 15,
3781+
CX_BO_NE = 16,
3782+
CX_BO_And = 17,
3783+
CX_BO_Xor = 18,
3784+
CX_BO_Or = 19,
3785+
CX_BO_LAnd = 20,
3786+
CX_BO_LOr = 21,
3787+
CX_BO_Assign = 22,
3788+
CX_BO_MulAssign = 23,
3789+
CX_BO_DivAssign = 24,
3790+
CX_BO_RemAssign = 25,
3791+
CX_BO_AddAssign = 26,
3792+
CX_BO_SubAssign = 27,
3793+
CX_BO_ShlAssign = 28,
3794+
CX_BO_ShrAssign = 29,
3795+
CX_BO_AndAssign = 30,
3796+
CX_BO_XorAssign = 31,
3797+
CX_BO_OrAssign = 32,
3798+
CX_BO_Comma = 33,
3799+
CX_BO_LAST = CX_BO_Comma
3800+
};
3801+
3802+
/**
3803+
* \brief Returns the operator code for the binary operator.
3804+
*/
3805+
CINDEX_LINKAGE enum CX_BinaryOperatorKind
3806+
clang_Cursor_getBinaryOpcode(CXCursor C);
3807+
3808+
/**
3809+
* \brief Returns a string containing the spelling of the binary operator.
3810+
*/
3811+
CINDEX_LINKAGE CXString
3812+
clang_Cursor_getBinaryOpcodeStr(enum CX_BinaryOperatorKind Op);
3813+
37373814
/**
37383815
* Returns the storage class for a function or variable declaration.
37393816
*

cpp/ycm/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,41 +30,41 @@ if ( USE_CLANG_COMPLETER AND
3030
NOT PATH_TO_LLVM_ROOT AND
3131
NOT EXTERNAL_LIBCLANG_PATH )
3232

33-
set( CLANG_VERSION 18.1.1 )
33+
set( CLANG_VERSION 19.1.0 )
3434

3535
if ( APPLE )
3636
if ( "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "arm64" )
3737
set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-arm64-apple-darwin" )
3838
set( LIBCLANG_SHA256
39-
"04dd2ac7714e4aef14a8bb381563c753f02b6fb191d48279f9c896820c1560e9" )
39+
"87cd54dc32df68a4d892dc5c0edd4547af30a22a8fd962ecbc25162a73508353" )
4040
else()
4141
set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-x86_64-apple-darwin" )
4242
set( LIBCLANG_SHA256
43-
"4a7077c7aeb72c7583463449383fb69632cafc3d6cad12eae805412d572a3745" )
43+
"336a25f6b2f20132707eef99f6ef6eb86428c22e712f7e35d8175b143a39ec23" )
4444
endif()
4545
elseif ( WIN32 )
4646
if( 64_BIT_PLATFORM )
4747
set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-win64" )
4848
set( LIBCLANG_SHA256
49-
"b594a8d7cb92c14afa545668e72898bbfa29f8b280b78c57eb7d9c2a4f4e8906" )
49+
"5d1f34a4013d2167f957ff5d2dca1fbd088dff30ed79e0a2ad83e5b09b52343c" )
5050
else()
5151
set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-win32" )
5252
set( LIBCLANG_SHA256
53-
"243cee577e40c9844699898ba3c024c13c8f092ed6b8a5cfc3b8e386bb621134" )
53+
"92115d03bfe5f2da95e1cac31d2487b2441154a37d565bdbce937957436bf129" )
5454
endif()
5555
elseif ( CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)" )
5656
set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-aarch64-linux-gnu" )
5757
set( LIBCLANG_SHA256
58-
"24fbd9a37bc3de67084aa29f0d268354b07336d38673acc147e639c19944ffb2" )
58+
"b39fa528c4d18aacf9c0e0027e055203878685948615d2c46a73ac80b4bbb3ee" )
5959
elseif ( CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm.*|ARM.*)" )
6060
set( LIBCLANG_DIRNAME "libclang-${CLANG_VERSION}-armv7a-linux-gnueabihf" )
6161
set( LIBCLANG_SHA256
62-
"4efc43e99c455f015519effa33af8b0b4cbe622a92a6d750ce64f9233cb3b447" )
62+
"a175b0fb5d912a4374f1879ecdf8633af597d62899fc5ccca1dc4681eeae2c3d" )
6363
elseif ( CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64)" )
6464
set( LIBCLANG_DIRNAME
6565
"libclang-${CLANG_VERSION}-x86_64-unknown-linux-gnu" )
6666
set( LIBCLANG_SHA256
67-
"04f84497cef3600569a8a52f9535547babe5298ab1709a9b83c1bf5c3d3d29b1" )
67+
"c41d39a5526bae11bb99b8f716b5588ab2230db69253e4a99b583144f86226f7" )
6868
else()
6969
message( FATAL_ERROR
7070
"No prebuilt Clang ${CLANG_VERSION} binaries for this system. "

0 commit comments

Comments
 (0)