Skip to content

Commit

Permalink
[StaticAnalyzer] Modernize VforkChecker (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed Aug 27, 2023
1 parent 8f1b718 commit a8931a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/StaticAnalyzer/Checkers/VforkChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class VforkChecker : public Checker<check::PreCall, check::PostCall,
check::Bind, check::PreStmt<ReturnStmt>> {
mutable std::unique_ptr<BuiltinBug> BT;
mutable llvm::SmallSet<const IdentifierInfo *, 10> VforkAllowlist;
mutable const IdentifierInfo *II_vfork;
mutable const IdentifierInfo *II_vfork = nullptr;

static bool isChildProcess(const ProgramStateRef State);

Expand All @@ -58,7 +58,7 @@ class VforkChecker : public Checker<check::PreCall, check::PostCall,
const char *Details = nullptr) const;

public:
VforkChecker() : II_vfork(nullptr) {}
VforkChecker() = default;

void checkPreCall(const CallEvent &Call, CheckerContext &C) const;
void checkPostCall(const CallEvent &Call, CheckerContext &C) const;
Expand Down

0 comments on commit a8931a1

Please sign in to comment.