[all-commits] [llvm/llvm-project] 39a63f: [-Wunsafe-buffer-usage] Use relevant source locati...

jkorous-apple via All-commits all-commits at lists.llvm.org
Wed Jan 18 14:19:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39a63fc7fe9824313764a9da8565a705d3024b1a
      https://github.com/llvm/llvm-project/commit/39a63fc7fe9824313764a9da8565a705d3024b1a
  Author: Jan Korous <jkorous at apple.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M clang/lib/Sema/AnalysisBasedWarnings.cpp
    A clang/test/SemaCXX/warn-unsafe-buffer-usage-source-ranges.cpp

  Log Message:
  -----------
  [-Wunsafe-buffer-usage] Use relevant source locations for warnings

This way we highlight a particular unsafe subexpression by providing more accurate
source location than begin of an entire statement.

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




More information about the All-commits mailing list