Skip to content

Commit cf2f486

Browse files
committed
work
1 parent e58596a commit cf2f486

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

cpp/cert/src/rules/CON56-CPP/DoNotSpeculativelyLockALockedNonRecursiveMutex.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ import codingstandards.cpp.Concurrency
1919
from LockProtectedControlFlowNode n
2020
where
2121
not isExcluded(n, ConcurrencyPackage::doNotSpeculativelyLockALockedNonRecursiveMutexQuery()) and
22-
// problematic nodes are ones where a lock is active and there is an attempt to
23-
// call a speculative locking function
24-
25-
22+
// problematic nodes are ones where a lock is active and there is an attempt
23+
// to call a speculative locking function
2624
n.(MutexFunctionCall).isSpeculativeLock() and
2725
not n.(MutexFunctionCall).isRecursive() and
2826
n.getAProtectingLock() = n.(MutexFunctionCall).getLock()

cpp/cert/src/rules/CON56-CPP/LockedALockedNonRecursiveMutexAudit.ql

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ import codingstandards.cpp.Concurrency
1919
from LockProtectedControlFlowNode n
2020
where
2121
not isExcluded(n, ConcurrencyPackage::lockedALockedNonRecursiveMutexAuditQuery()) and
22-
// problematic nodes are ones where a lock is active and there is an attempt to
23-
// call a speculative locking function
24-
25-
22+
// problematic nodes are ones where a lock is active and there is an attempt
23+
// to call a speculative locking function
2624
n.(MutexFunctionCall).isSpeculativeLock() and
2725
not n.(MutexFunctionCall).isRecursive()
2826
select n, "(Audit) Attempt to speculatively lock a non-recursive mutex while it is $@.",

0 commit comments

Comments
 (0)