When checking for non null arguments the wrong SourceLocation was given,
this fix to pass the proper argument's location.
Reported in PR58273.
Differential D136355
[clang][Sema] Fix caret position to be on the non null parameter Grillo on Oct 20 2022, 7:12 AM. Authored by
Details When checking for non null arguments the wrong SourceLocation was given, Reported in PR58273.
Diff Detail
Event TimelineComment Actions Thank you for the fix! Can you add test coverage to show the behavioral change? You can either position the problematic null argument on its own line (so you can validate the correct position) or use -fdiagnostics-print-source-range-info to check a specific range. Also, can you add a release note about the fix to clang/docs/ReleaseNotes.rst? Comment Actions LGTM aside from a tiny grammar nit. Thank you for the fix! If you'd like me to commit this on your behalf, I can fix up the release note myself when landing, but please let me know what name and email address you'd like me to use for patch attribution.
Comment Actions If you could that would be great! My name and email is Arthur Grillo <arthur.grillo@usp.br>. Best Regards, |