[all-commits] [llvm/llvm-project] 3c1fca: Fix issue in typo handling which could lead clang ...

David Goldman via All-commits all-commits at lists.llvm.org
Fri Jul 24 14:36:03 PDT 2020


  Branch: refs/heads/release/11.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c1fca803bc14617b67ba2125e1b4b77190e9f86
      https://github.com/llvm/llvm-project/commit/3c1fca803bc14617b67ba2125e1b4b77190e9f86
  Author: David Goldman <davg at google.com>
  Date:   2020-07-24 (Fri, 24 Jul 2020)

  Changed paths:
    M clang/include/clang/Sema/SemaInternal.h
    M clang/lib/Sema/SemaExprCXX.cpp
    A clang/test/Sema/typo-correction-no-hang.cpp
    M clang/test/Sema/typo-correction-recursive.cpp

  Log Message:
  -----------
  Fix issue in typo handling which could lead clang to hang

Summary:
We need to detect when certain TypoExprs are not being transformed
due to invalid trees, otherwise we risk endlessly trying to fix it.

Reviewers: rsmith

Subscribers: cfe-commits

Tags: #clang

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

(cherry picked from commit dde98c82c0ad02410229e7e5c9efcbb0ab42a995)




More information about the All-commits mailing list