[all-commits] [llvm/llvm-project] 2cea4c: Do not suggest taking the address of a const point...

Alexey Kreschuk via All-commits all-commits at lists.llvm.org
Wed Nov 23 10:43:21 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cea4c239570c37f46ad0003b3d41d9473aca60f
      https://github.com/llvm/llvm-project/commit/2cea4c239570c37f46ad0003b3d41d9473aca60f
  Author: Alexey Kreshchuk <akrsch at gmail.com>
  Date:   2022-11-23 (Wed, 23 Nov 2022)

  Changed paths:
    M clang/lib/Sema/SemaFixItUtils.cpp
    M clang/test/FixIt/fixit-function-call.cpp

  Log Message:
  -----------
  Do not suggest taking the address of a const pointer to get void*

It's more likely the user needs a const cast, but probably not sure
enough that we should suggest that either - so err on the side of
caution and offer no suggestion.

Fixes pr58958

Reviewed By: dblaikie

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




More information about the All-commits mailing list