[all-commits] [llvm/llvm-project] 15f121: [clang-format] Fix an assertion failure in block p...

Owen via All-commits all-commits at lists.llvm.org
Tue Dec 6 14:14:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15f121e853846d7c74c243a4249a069dd67ca166
      https://github.com/llvm/llvm-project/commit/15f121e853846d7c74c243a4249a069dd67ca166
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M clang/lib/Format/FormatToken.h
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/lib/Format/UnwrappedLineParser.h
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [clang-format] Fix an assertion failure in block parsing

This assertion failure was introduced in 9ed2e68c9ae5 and is
manifested when both RemoveBracesLLVM and MacroBlockBegin are set.

Fixes #59335.

Differential Revision: https://reviews.llvm.org/D139281




More information about the All-commits mailing list