Author: Kazu Hirata
Date: 2023-09-02T09:32:40-07:00
New Revision: 2fa1ad8a022fc6ad88f7948d64d12e4a6cc3e39d

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

LOG: [StaticAnalyzer] Modernize IsObjCTypeParamDependentTypeVisitor (NFC)

Added: 
    

Modified: 
    clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp 
b/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
index 1f3e9e00d3e693..eda8302595ba4f 100644
--- a/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
@@ -713,7 +713,7 @@ static bool isObjCTypeParamDependent(QualType Type) {
   class IsObjCTypeParamDependentTypeVisitor
       : public RecursiveASTVisitor<IsObjCTypeParamDependentTypeVisitor> {
   public:
-    IsObjCTypeParamDependentTypeVisitor() : Result(false) {}
+    IsObjCTypeParamDependentTypeVisitor() = default;
     bool VisitObjCTypeParamType(const ObjCTypeParamType *Type) {
       if (isa<ObjCTypeParamDecl>(Type->getDecl())) {
         Result = true;
@@ -722,7 +722,7 @@ static bool isObjCTypeParamDependent(QualType Type) {
       return true;
     }
 
-    bool Result;
+    bool Result = false;
   };
 
   IsObjCTypeParamDependentTypeVisitor Visitor;


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to