[all-commits] [llvm/llvm-project] 4701bc: Revert "[clang-format] Avoid inserting space after...

Marek Kurdej via All-commits all-commits at lists.llvm.org
Sun Feb 20 13:20:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4701bcae974704a336ac8e111d5b104f4834099c
      https://github.com/llvm/llvm-project/commit/4701bcae974704a336ac8e111d5b104f4834099c
  Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
  Date:   2022-02-20 (Sun, 20 Feb 2022)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  Revert "[clang-format] Avoid inserting space after C++ casts."

This reverts commit e021987273bece6e94bc6f43b6b5232de10637c8.

This commit provokes failures in formatting tests of polly.
Cf. https://lab.llvm.org/buildbot/#/builders/205/builds/3320.

That's probably because of `)` being annotated as `CastRParen` instead of `Unknown` before, hence being kept on the same line with the next token.




More information about the All-commits mailing list