================ @@ -57,6 +61,12 @@ class BlockInCriticalSectionChecker : public Checker<check::PostCall> { const CallEvent &call, CheckerContext &C) const; + CritSectionMarker getCriticalSectionMarker(const CallEvent &Call, + CheckerContext &C) const; + const NoteTag * + createCriticalSectionNote(const CritSectionMarker &CriticalSectionBegin, + CheckerContext &C) const; ---------------- balazske wrote:
Possible improvements (but not necessary to move the checker out of alpha): Handle `recursive_mutex`, `lock_guard`, `unique_lock`, `scoped_lock` objects. (It is recommended to use lock wrappers instead of plain `lock` and `unlock` functions.) https://github.com/llvm/llvm-project/pull/80029 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits