[all-commits] [llvm/llvm-project] 04202b: [-Wunsafe-buffer-usage] Improve pointer matching p...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Fri Dec 16 20:41:18 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04202b94b684963a7b581a4a0f5baa8f7921b564
      https://github.com/llvm/llvm-project/commit/04202b94b684963a7b581a4a0f5baa8f7921b564
  Author: ziqingluo-90 <ziqing at udel.edu>
  Date:   2022-12-16 (Fri, 16 Dec 2022)

  Changed paths:
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    M clang/test/SemaCXX/warn-unsafe-buffer-usage.cpp

  Log Message:
  -----------
  [-Wunsafe-buffer-usage] Improve pointer matching pattern

Generalize the pointer expression AST matcher in Unsafe Buffer Usage analysis.
Add test cases for various kinds of pointer usages.

Reviewed By: NoQ, aaron.ballman, xazax.hun

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




More information about the All-commits mailing list