Skip to content

Commit c7a96f2

Browse files
committed
Declare data members in separate declarations
1 parent 1cbbc02 commit c7a96f2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

clang/lib/StaticAnalyzer/Checkers/DivZeroChecker.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ class DivZeroChecker : public CheckerFamily<check::PreStmt<BinaryOperator>> {
3434

3535
public:
3636
/// This checker family implements two user-facing checker parts.
37-
CheckerFrontendWithBugType DivideZeroChecker{"Division by zero"},
38-
TaintedDivChecker{"Division by zero", categories::TaintedData};
37+
CheckerFrontendWithBugType DivideZeroChecker{"Division by zero"};
38+
CheckerFrontendWithBugType TaintedDivChecker{"Division by zero",
39+
categories::TaintedData};
3940

4041
void checkPreStmt(const BinaryOperator *B, CheckerContext &C) const;
4142

clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ class VirtualCallChecker
4444
check::PreCall> {
4545
public:
4646
CheckerFrontendWithBugType PureChecker{"Pure virtual method call",
47-
categories::CXXObjectLifecycle},
48-
ImpureChecker{"Unexpected loss of virtual dispatch",
49-
categories::CXXObjectLifecycle};
47+
categories::CXXObjectLifecycle};
48+
CheckerFrontendWithBugType ImpureChecker{
49+
"Unexpected loss of virtual dispatch", categories::CXXObjectLifecycle};
5050

5151
bool ShowFixIts = false;
5252

0 commit comments

Comments
 (0)