[clang] fbaf5cb - [StaticAnalyzer] Modernize EventDispatcher (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 19 00:27:22 PDT 2023


Author: Kazu Hirata
Date: 2023-08-19T00:27:11-07:00
New Revision: fbaf5cbb734fb1ae1f905a3d3657a09ccbeba86a

URL: https://github.com/llvm/llvm-project/commit/fbaf5cbb734fb1ae1f905a3d3657a09ccbeba86a
DIFF: https://github.com/llvm/llvm-project/commit/fbaf5cbb734fb1ae1f905a3d3657a09ccbeba86a.diff

LOG: [StaticAnalyzer] Modernize EventDispatcher (NFC)

Added: 
    

Modified: 
    clang/include/clang/StaticAnalyzer/Core/Checker.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/StaticAnalyzer/Core/Checker.h b/clang/include/clang/StaticAnalyzer/Core/Checker.h
index b92f0e1e9f0f47..8a46282a595eae 100644
--- a/clang/include/clang/StaticAnalyzer/Core/Checker.h
+++ b/clang/include/clang/StaticAnalyzer/Core/Checker.h
@@ -533,9 +533,9 @@ class Checker<CHECK1> : public CHECK1, public CheckerBase {
 
 template <typename EVENT>
 class EventDispatcher {
-  CheckerManager *Mgr;
+  CheckerManager *Mgr = nullptr;
 public:
-  EventDispatcher() : Mgr(nullptr) { }
+  EventDispatcher() = default;
 
   template <typename CHECKER>
   static void _register(CHECKER *checker, CheckerManager &mgr) {


        


More information about the cfe-commits mailing list