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

Aaron Puchert via All-commits all-commits at lists.llvm.org
Tue Aug 5 01:57:04 PDT 2025


  Branch: refs/heads/release/21.x
  Home:   https://github.com/llvm/llvm-project
  Commit: d4046ae6df51ad41370dfe474bfb3c93fd8e166d
      https://github.com/llvm/llvm-project/commit/d4046ae6df51ad41370dfe474bfb3c93fd8e166d
  Author: Aaron Puchert <aaronpuchert at alice-dsl.net>
  Date:   2025-08-05 (Tue, 05 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.

(cherry picked from commit a048aeb06e5de571eadd646860c320b9a67d1efc)



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