Skip to content

Commit c7671cf

Browse files
committed
Update clang to 21.1.3
1 parent e1737ce commit c7671cf

File tree

286 files changed

+46980
-25523
lines changed

Some content is hidden

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

286 files changed

+46980
-25523
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 = '19.1.0'
110+
CLANGD_VERSION = '21.1.3'
111111
CLANGD_BINARIES_ERROR_MESSAGE = (
112112
'No prebuilt Clang {version} binaries for {platform}. '
113113
'You\'ll have to compile Clangd {version} from source '
@@ -1170,30 +1170,30 @@ def GetClangdTarget():
11701170
if OnWindows():
11711171
return [
11721172
( 'clangd-{version}-win64',
1173-
'6f4a14f3f144fc39158a7088528e3c8ffa20df516404c319e42351c27dfff063' ),
1173+
'f3391f8255da1d101e8868a0f5b0af28cd9b1729ade6c0857286a438373dc5f3' ),
11741174
( 'clangd-{version}-win32',
1175-
'4278d11bebd7c60b945c7aa7457a82e707eeb488d24acdccdc3e354b36b808be' ) ]
1175+
'f2a60a8666ff79361abcf00b176c35384ccb799e86e93608360d510e99904a2e' ) ]
11761176
if OnMac():
11771177
if OnArm():
11781178
return [
11791179
( 'clangd-{version}-arm64-apple-darwin',
1180-
'b65d43dc82f47a68c8faf6d9711f54a29da9f25c39c3f138466c874359e5efe8' ) ]
1180+
'b40b580158f8d691e3c27f9652492e8904a1d6c1026186baf38c9773ec8dc671' ) ]
11811181
return [
11821182
( 'clangd-{version}-x86_64-apple-darwin',
1183-
'f3da3d4c97d1f8526299f2c64aaa0dbdeff5daad4e07a1937ad1d81b6407d143' ) ]
1183+
'beb0fa5208b3879aba6173bbc51c4fd1d71ddadaf75eb327b0e93f9c21eb8a58' ) ]
11841184
if OnAArch64():
11851185
return [
11861186
( 'clangd-{version}-aarch64-linux-gnu',
1187-
'c279514021924c04b0b810bf79adb3cd5d7f061acb3c4b43e4c445671b3d2a18' ) ]
1187+
'2927fa99de680a7427bc21e0e03199ae5a960119074be85fd9cd006513211b68' ) ]
11881188
if OnArm():
11891189
return [
11901190
None, # First list index is for 64bit archives. ARMv7 is 32bit only.
11911191
( 'clangd-{version}-armv7a-linux-gnueabihf',
1192-
'f561e33a90f2053d12202d4a06477c30bf831082c01c228f1935403632bbfa81' ) ]
1192+
'3981e8d6b6793b7da4147733f22028fef56a8ee5e1cb56289f968f040ef1ee7e' ) ]
11931193
if OnX86_64():
11941194
return [
11951195
( 'clangd-{version}-x86_64-unknown-linux-gnu',
1196-
'93319be9a2ec662be57f7ce77463ac706ae4f559744f05f7cae4da3350a154b5' ) ]
1196+
'db6ee091461d28697b419595a44623772dd58466aad031e7a4f3beac9d668abe' ) ]
11971197
raise InstallationFailed(
11981198
CLANGD_BINARIES_ERROR_MESSAGE.format( version = CLANGD_VERSION,
11991199
platform = 'this system' ) )

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ CINDEX_LINKAGE CXSourceLocation clang_getNullLocation(void);
7474
CINDEX_LINKAGE unsigned clang_equalLocations(CXSourceLocation loc1,
7575
CXSourceLocation loc2);
7676

77+
/**
78+
* Determine for two source locations if the first comes
79+
* strictly before the second one in the source code.
80+
*
81+
* \returns non-zero if the first source location comes
82+
* strictly before the second one, zero otherwise.
83+
*/
84+
CINDEX_LINKAGE unsigned clang_isBeforeInTranslationUnit(CXSourceLocation loc1,
85+
CXSourceLocation loc2);
86+
7787
/**
7888
* Returns non-zero if the given source location is in a system header.
7989
*/

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ typedef struct {
4646

4747
/**
4848
* Retrieve the character data associated with the given string.
49+
*
50+
* The returned data is a reference and not owned by the user. This data
51+
* is only valid while the `CXString` is valid. This function is similar
52+
* to `std::string::c_str()`.
4953
*/
5054
CINDEX_LINKAGE const char *clang_getCString(CXString string);
5155

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@
1111
#define LLVM_CLANG_C_FATAL_ERROR_HANDLER_H
1212

1313
#include "clang-c/ExternC.h"
14+
#include "clang-c/Platform.h"
1415

1516
LLVM_CLANG_C_EXTERN_C_BEGIN
1617

1718
/**
1819
* Installs error handler that prints error message to stderr and calls abort().
1920
* Replaces currently installed error handler (if any).
2021
*/
21-
void clang_install_aborting_llvm_fatal_error_handler(void);
22+
CINDEX_LINKAGE void clang_install_aborting_llvm_fatal_error_handler(void);
2223

2324
/**
2425
* Removes currently installed error handler (if any).
2526
* If no error handler is intalled, the default strategy is to print error
2627
* message to stderr and call exit(1).
2728
*/
28-
void clang_uninstall_llvm_fatal_error_handler(void);
29+
CINDEX_LINKAGE void clang_uninstall_llvm_fatal_error_handler(void);
2930

3031
LLVM_CLANG_C_EXTERN_C_END
3132

0 commit comments

Comments
 (0)