Fix caret position to be on the non null parameter
authorArthur Grillo <arthur.grillo@usp.br>
Mon, 24 Oct 2022 12:38:21 +0000 (08:38 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 24 Oct 2022 12:38:21 +0000 (08:38 -0400)
commit1534b048d6fdd7cf5f7dd5d3b8c6876b7cdad184
tree9831881f004ccb58d15bae72bb1ca8727ccc3ff2
parentc9b3638126e520917ad42d3ec38ad31fd389e4b5
Fix caret position to be on the non null parameter

When checking for non null arguments the wrong SourceLocation was given,
this fix to pass the proper argument's location.

Fixes #58273

Differential Revision: https://reviews.llvm.org/D136355
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/non-null-warning.c