[all-commits] [llvm/llvm-project] 275196: [clang][nullability] Don't return null fields from...

martinboehme via All-commits all-commits at lists.llvm.org
Mon Jun 10 23:40:23 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 275196d866c86d95fc46b3324876ccbea09da79b
      https://github.com/llvm/llvm-project/commit/275196d866c86d95fc46b3324876ccbea09da79b
  Author: martinboehme <mboehme at google.com>
  Date:   2024-06-11 (Tue, 11 Jun 2024)

  Changed paths:
    M clang/docs/tools/clang-formatted-files.txt
    M clang/lib/Analysis/FlowSensitive/ASTOps.cpp
    A clang/unittests/Analysis/FlowSensitive/ASTOpsTest.cpp
    M clang/unittests/Analysis/FlowSensitive/CMakeLists.txt
    M llvm/utils/gn/secondary/clang/unittests/Analysis/FlowSensitive/BUILD.gn

  Log Message:
  -----------
  [clang][nullability] Don't return null fields from `getReferencedDecls()`. (#94983)

The patch includes a repro for a case where we were returning a null
`FieldDecl`
when calling `getReferencedDecls()` on the `InitListExpr` for a union.

Also, I noticed while working on this that `RecordInitListHelper` has a
bug
where it doesn't work correctly for empty unions. This patch also
includes a
repro and fix for this bug.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list