[all-commits] [llvm/llvm-project] 373fcd: [clang] Use RecoveryExprs for broken defaultargs, ...

kadir ├žetinkaya via All-commits all-commits at lists.llvm.org
Wed Aug 16 01:33:00 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 373fcd5d73a3ed5bedff771bcf6a3aba981155cc
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2023-08-16 (Wed, 16 Aug 2023)

  Changed paths:
    M clang-tools-extra/clangd/unittests/HoverTests.cpp
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParseCXXInlineMethods.cpp
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    A clang/test/AST/ast-dump-default-arg-recovery.cpp
    M clang/test/Index/complete-optional-params.cpp

  Log Message:
  [clang] Use RecoveryExprs for broken defaultargs, instead of OpaqueValueExprs

This makes sure we can preserve invalid-ness for consumers of this
node, it prevents crashes. It also aligns better with rest of the places that
store invalid expressions.

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

More information about the All-commits mailing list