[clang] Thread safety analysis: Fix a bug in handling temporary constructors (PR #74020)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 30 17:36:04 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 668a4a238045e7f300b771f7e4cfa723d8bde237 ecb13c381d99010dc04a2da4e945dfd1132777fd -- clang/lib/Analysis/ThreadSafety.cpp clang/test/SemaCXX/warn-thread-safety-analysis.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Analysis/ThreadSafety.cpp b/clang/lib/Analysis/ThreadSafety.cpp
index 9549d1b398..401b1071db 100644
--- a/clang/lib/Analysis/ThreadSafety.cpp
+++ b/clang/lib/Analysis/ThreadSafety.cpp
@@ -1530,7 +1530,8 @@ void ThreadSafetyAnalyzer::getEdgeLockset(FactSet& Result,
}
namespace {
-using ConstructedObjectMapTy = llvm::SmallDenseMap<const Expr *, til::LiteralPtr *>;
+using ConstructedObjectMapTy =
+ llvm::SmallDenseMap<const Expr *, til::LiteralPtr *>;
/// We use this class to visit different types of expressions in
/// CFGBlocks, and build up the lockset.
/// An expression may cause us to add or remove locks from the lockset, or else
``````````
</details>
https://github.com/llvm/llvm-project/pull/74020
More information about the cfe-commits
mailing list