[all-commits] [llvm/llvm-project] 77a599: [analyzer] Fix false negative when using a nullabl...

tripleCC via All-commits all-commits at lists.llvm.org
Mon Jul 3 00:29:26 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77a599ae5828df343e2aa6acc634fe9acb152c99
  Author: tripleCC <triplec.linux at gmail.com>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
    M clang/test/Analysis/nullability.mm

  Log Message:
  [analyzer] Fix false negative when using a nullable parameter directly without binding to a variable

If a parameter has a nullability annotation, the nullability information
of the parameter should be set as a NullabilityState trait at the
beginning of the function.

Patch By tripleCC!

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

More information about the All-commits mailing list