[all-commits] [llvm/llvm-project] a048ae: Thread safety analysis: Don't warn on acquiring re...

Aaron Puchert via All-commits all-commits at lists.llvm.org
Sun Aug 3 10:50:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a048aeb06e5de571eadd646860c320b9a67d1efc
      https://github.com/llvm/llvm-project/commit/a048aeb06e5de571eadd646860c320b9a67d1efc
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2025-08-03 (Sun, 03 Aug 2025)

  Changed paths:
    M clang/lib/Analysis/ThreadSafety.cpp
    M clang/test/SemaCXX/warn-thread-safety-negative.cpp

  Log Message:
  -----------
  Thread safety analysis: Don't warn on acquiring reentrant capability (#150857)

The point of reentrant capabilities is that they can be acquired
multiple times, so they should probably be excluded from requiring a
negative capability on acquisition via -Wthread-safety-negative.

However, we still propagate explicit negative requirements.



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