Skip to content

Conversation

@zhaojunmeng
Copy link
Contributor

Fix compile error C2226 in non English locale
see: llvm/llvm-project#60549

Fix compile error C2226 in non English locale
see: llvm/llvm-project#60549
@zhaojunmeng
Copy link
Contributor Author

@dotnet-policy-service agree

@zhaojunmeng
Copy link
Contributor Author

Compile errors to fix are:

D:\Code\cppsharp\build\llvm\llvm-project\clang\lib\Lex\UnicodeCharSets.h(394,1): error C2226: 语法错误: 意外的“llvm::sys::UnicodeCharRange”类型 [D:\Code\cppsharp\build\llvm\llvm-project\6eb36a-win-vs2022-x64-RelWD\tools\clang\lib\Lex\obj.clangLex.vcxproj]

D:\Code\cppsharp\build\llvm\llvm-project\clang\lib\Lex\UnicodeCharSets.h(394,69): error C2143: 语法错误: 缺少“;”(在“{”的前面) [D:\Code\cppsharp\build\llvm\llvm-project\6eb36a-win-vs2022-x64-RelWD\tools\clang\lib\Lex\obj.clangLex.vcxproj]

D:\Code\cppsharp\build\llvm\llvm-project\clang\lib\Lex\UnicodeCharSets.h(394,69): error C2447: “{”: 缺少函数标题(是否是老式的形式表?) [D:\Code\cppsharp\build\llvm\llvm-project\6eb36a-win-vs2022-x64-RelWD\tools\clang\lib\Lex\obj.clangLex.vcxproj]

D:\Code\cppsharp\build\llvm\llvm-project\clang\lib\Lex\Lexer.cpp(1479,59): error C2665: “llvm::sys::UnicodeCharSet::UnicodeCharSet”: 没有重载函数可以转换所有参数类型 [D:\Code\cppsharp\build\llvm\llvm-project\6eb36a-win-vs2022-x64-RelWD\tools\clang\lib\Lex\obj.clangLex.vcxproj]

D:\Code\cppsharp\build\llvm\llvm-project\clang\lib\Lex\Lexer.cpp(1508,9): error C2065: “C11AllowedIDCharRanges”: 未声明的标识符 [D:\Code\cppsharp\build\llvm\llvm-project\6eb36a-win-vs2022-x64-RelWD\tools\clang\lib\Lex\obj.clangLex.vcxproj]

D:\Code\cppsharp\build\llvm\llvm-project\clang\lib\Lex\Lexer.cpp(1548,59): error C2665: “llvm::sys::UnicodeCharSet::UnicodeCharSet”: 没有重载函数可以转换所有参数类型 [D:\Code\cppsharp\build\llvm\llvm-project\6eb36a-win-vs2022-x64-RelWD\tools\clang\lib\Lex\obj.clangLex.vcxproj]

@tritao tritao merged commit 69e0b82 into mono:main Aug 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants