[clang] [NFC][analyzer] Multipart checker refactor 1: VirtualCallChecker (PR #132072)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 19 14:01:23 PDT 2025


=?utf-8?q?DonĂ¡t?= Nagy <donat.nagy at ericsson.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/132072 at github.com>


================
@@ -42,8 +42,14 @@ namespace {
 class VirtualCallChecker
     : public Checker<check::BeginFunction, check::EndFunction, check::PreCall> {
 public:
-  // These are going to be null if the respective check is disabled.
-  mutable std::unique_ptr<BugType> BT_Pure, BT_Impure;
+  enum : CheckerPartIdx { PureChecker, ImpureChecker, NumCheckerParts };
+
+  BugType BugTypes[NumCheckerParts] = {
+      {this, PureChecker, "Pure virtual method call",
----------------
steakhal wrote:

Ok. I think the right phrase is "call to".

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


More information about the cfe-commits mailing list