Skip to content

Commit 4bf93c0

Browse files
committed
Thread Safety Analysis: Fix style
Comment fix and apply new clang-format style in ScopedLockableFactEntry::unlock(). Factored out from #137133 NFC.
1 parent 96eeb6c commit 4bf93c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Analysis/ThreadSafety.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class FactEntry : public CapabilityExpr {
119119
/// Exclusive or shared.
120120
LockKind LKind : 8;
121121

122-
// How it was acquired.
122+
/// How it was acquired.
123123
SourceKind Source : 8;
124124

125125
/// Where it was acquired.
@@ -1011,8 +1011,8 @@ class ScopedLockableFactEntry : public FactEntry {
10111011
SourceLocation loc, ThreadSafetyHandler *Handler) const {
10121012
if (FSet.findLock(FactMan, Cp)) {
10131013
FSet.removeLock(FactMan, Cp);
1014-
FSet.addLock(FactMan, std::make_unique<LockableFactEntry>(
1015-
!Cp, LK_Exclusive, loc));
1014+
FSet.addLock(FactMan,
1015+
std::make_unique<LockableFactEntry>(!Cp, LK_Exclusive, loc));
10161016
} else if (Handler) {
10171017
SourceLocation PrevLoc;
10181018
if (const FactEntry *Neg = FSet.findLock(FactMan, !Cp))

0 commit comments

Comments
 (0)