[all-commits] [llvm/llvm-project] 39427b: Reapply "[clang analysis][thread-safety] Handle re...

Clement Courbet via All-commits all-commits at lists.llvm.org
Wed Oct 18 23:35:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39427b10985f034b85a12e8b229a4f816d844afb
      https://github.com/llvm/llvm-project/commit/39427b10985f034b85a12e8b229a4f816d844afb
  Author: Clement Courbet <courbet at google.com>
  Date:   2023-10-19 (Thu, 19 Oct 2023)

  Changed paths:
    M clang/include/clang/Analysis/Analyses/ThreadSafety.h
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Analysis/ThreadSafety.cpp
    M clang/lib/Sema/AnalysisBasedWarnings.cpp
    M clang/test/SemaCXX/warn-thread-safety-analysis.cpp

  Log Message:
  -----------
  Reapply "[clang analysis][thread-safety] Handle return-by-reference..… (#68572)

…… (#68394)"

The new warnings are now under a separate flag
`-Wthread-safety-reference-return`, which is on by default under
`-Wthread-safety-reference`.

- People can opt out via `-Wthread-safety-reference
-Wnothread-safety-reference-return`.
This reverts commit 859f2d032386632562521a99db20923217d98988.




More information about the All-commits mailing list