Skip to content

Commit

Permalink
[StaticAnalyzer] Modernize IsObjCTypeParamDependentTypeVisitor (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Sep 2, 2023
1 parent cccdf5b commit 2fa1ad8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -722,7 +722,7 @@ static bool isObjCTypeParamDependent(QualType Type) {
return true;
}

bool Result;
bool Result = false;
};

IsObjCTypeParamDependentTypeVisitor Visitor;
Expand Down

0 comments on commit 2fa1ad8

Please sign in to comment.