Skip to content

Commit

Permalink
[clang-tidy] Modernize Handler (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata committed May 6, 2023
1 parent 2b60bd5 commit 283427a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang-tools-extra/clang-tidy/cert/StrToNumCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ConversionKind classifyFormatString(StringRef Fmt, const LangOptions &LO,
// specifiers, but that is acceptable behavior.

class Handler : public analyze_format_string::FormatStringHandler {
ConversionKind CK;
ConversionKind CK = ConversionKind::None;

bool HandleScanfSpecifier(const analyze_scanf::ScanfSpecifier &FS,
const char *StartSpecifier,
Expand Down Expand Up @@ -117,7 +117,7 @@ ConversionKind classifyFormatString(StringRef Fmt, const LangOptions &LO,
}

public:
Handler() : CK(ConversionKind::None) {}
Handler() = default;

ConversionKind get() const { return CK; }
};
Expand Down

0 comments on commit 283427a

Please sign in to comment.