[all-commits] [llvm/llvm-project] 5331e1: [clang][transformer] Fix crash on replacement-less...

Clement Courbet via All-commits all-commits at lists.llvm.org
Wed Aug 10 00:08:26 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5331e1229aa6d0d33b5ec9fab7c05310187746d9
      https://github.com/llvm/llvm-project/commit/5331e1229aa6d0d33b5ec9fab7c05310187746d9
  Author: Clement Courbet <courbet at google.com>
  Date:   2022-08-10 (Wed, 10 Aug 2022)

  Changed paths:
    M clang-tools-extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp
    M clang/lib/Tooling/Transformer/RewriteRule.cpp

  Log Message:
  -----------
  [clang][transformer] Fix crash on replacement-less ASTEdit.

Given that we provide an EditGenerator edit(ASTEdit), we can't ever be
sure that the user won't give us an empty replacement.

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




More information about the All-commits mailing list