See PR33946.
Details
Details
- Reviewers
klimek djasper sammccall MyDeveloperDay - Commits
- rZORG616bdbe1a5eb: [clang-format] Fix the crash when formatting unsupported encodings
rZORGbc99fc3ca8bf: [clang-format] Fix the crash when formatting unsupported encodings
rG616bdbe1a5eb: [clang-format] Fix the crash when formatting unsupported encodings
rGbc99fc3ca8bf: [clang-format] Fix the crash when formatting unsupported encodings
rG4ba5269f33ff: [clang-format] Fix the crash when formatting unsupported encodings
rC360257: [clang-format] Fix the crash when formatting unsupported encodings
rL360257: [clang-format] Fix the crash when formatting unsupported encodings
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Moved "UTF-32 (LE)" to before "UTF-16 (LE)" in llvm::StringSwitch so that the former BOM wouldn't be misnamed as the latter.
Comment Actions
I copied the code from clang/lib/Basic/SourceManager.cpp. See D61628.
I will update this patch to correct the typo in SCSU or remove it along with the other rare BOMs. How do you add test cases for this kind of fixes that emit error messages?