[PATCH] D60868: [clang-format] Fix an assertion failure

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 18 07:37:01 PDT 2019


alexfh created this revision.
alexfh added a reviewer: krasimir.
Herald added a project: clang.

Before this patch clang-format crashed when trying to issue a diagnostic about an unsupported BOM. See the bug report here: https://bugs.llvm.org/show_bug.cgi?id=26032


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60868

Files:
  clang/lib/Basic/SourceManager.cpp
  clang/lib/Format/Format.cpp
  clang/lib/Format/FormatTokenLexer.cpp
  clang/lib/Format/FormatTokenLexer.h
  clang/lib/Format/SortJavaScriptImports.cpp
  clang/lib/Format/TokenAnalyzer.cpp
  clang/lib/Format/TokenAnalyzer.h
  clang/test/Format/invalid-bom.cpp
  clang/tools/clang-format/ClangFormat.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60868.195735.patch
Type: text/x-patch
Size: 17004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190418/f9532ee3/attachment-0001.bin>


More information about the cfe-commits mailing list