Skip to content

Commit 4b21305

Browse files
committed
review cleanup
1 parent f9b8cba commit 4b21305

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ bool hasSmartPointerClassShape(const CXXRecordDecl &RD, bool &HasGet,
3232
// We only consider methods that are const and have zero parameters.
3333
// It may be that there is a non-const overload for the method, but
3434
// there should at least be a const overload as well.
35-
if (!MD->isConst() || MD->getNumParams() != 0) {
35+
if (!MD->isConst() || MD->getNumParams() != 0)
3636
continue;
37-
}
3837
if (MD->getOverloadedOperator() == OO_Star &&
3938
MD->getReturnType()->isReferenceType()) {
4039
HasStar = true;

clang/unittests/Analysis/FlowSensitive/SmartPointerAccessorCachingTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,5 @@ TEST(SmartPointerAccessorCachingTest, MatchesWithValueAndNonConstOverloads) {
191191
}
192192

193193
} // namespace
194-
} // namespace clang::dataflow
194+
} // namespace clang::dataflow
195+

0 commit comments

Comments
 (0)