[all-commits] [llvm/llvm-project] 4dcfae: Fix a violated precondition in clang-format.

r4nt via All-commits all-commits at lists.llvm.org
Wed Dec 1 05:40:03 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4dcfae6a003aa541600e5af42c0bec5d8e1abef0
      https://github.com/llvm/llvm-project/commit/4dcfae6a003aa541600e5af42c0bec5d8e1abef0
  Author: Manuel Klimek <klimek at google.com>
  Date:   2021-12-01 (Wed, 01 Dec 2021)

  Changed paths:
    M clang/lib/Format/ContinuationIndenter.cpp
    M clang/unittests/Format/FormatTestComments.cpp

  Log Message:
  -----------
  Fix a violated precondition in clang-format.

Make sure we do not try to change line comments that are non-regular, i.e. do
not start with "//" or "#". This can for example happen when "//" is
broken into two lines with an escaped newline.




More information about the All-commits mailing list