[all-commits] [llvm/llvm-project] 9d7299: [Clang] Add fix-it hint to insert `*` when a modif...

Rajveer Singh Bharadwaj via All-commits all-commits at lists.llvm.org
Wed Jun 12 23:54:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d7299fb84bcaafc6b7368dbe5ee6de29e71e655
      https://github.com/llvm/llvm-project/commit/9d7299fb84bcaafc6b7368dbe5ee6de29e71e655
  Author: Rajveer Singh Bharadwaj <rajveer.developer at icloud.com>
  Date:   2024-06-13 (Thu, 13 Jun 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaExpr.cpp
    M clang/test/C/drs/dr1xx.c
    A clang/test/Sema/debug-93066.cpp
    M clang/test/Sema/exprs.c
    M clang/test/Sema/va_arg_x86_32.c
    M clang/test/SemaObjCXX/sel-address.mm

  Log Message:
  -----------
  [Clang] Add fix-it hint to insert `*` when a modifiable lvalue is required (#94159)

This adds a fix-it hint in situations where a modifiable lvalue is expected, but a prvalue
or non-modifiable lvalue of pointer type was found, so long as dereferencing the pointer 
would result in a modifiable lvalue.

Resolves #93066



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list