[clang] [analyzer] Use explicit call description mode in more checkers (PR #90974)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 23:44:11 PDT 2024


================
@@ -149,26 +149,34 @@ class BlockInCriticalSectionChecker : public Checker<check::PostCall> {
 private:
   const std::array<MutexDescriptor, 8> MutexDescriptors{
       MemberMutexDescriptor(
-          CallDescription(/*QualifiedName=*/{"std", "mutex", "lock"},
+          CallDescription(/*MatchAs=*/CDM::CXXMethod,
+                          /*QualifiedName=*/{"std", "mutex", "lock"},
                           /*RequiredArgs=*/0),
----------------
steakhal wrote:

Do we need the `CallDescription(...)` stuff? Couldn't we just use braces `{...}` like we usually do?

https://github.com/llvm/llvm-project/pull/90974


More information about the cfe-commits mailing list