Skip to content

Commit 2531ae6

Browse files
gamesh411steakhal
andauthored
Update clang/unittests/StaticAnalyzer/ExprEngineVisitTest.cpp
Co-authored-by: Balazs Benics <[email protected]>
1 parent d7b0cf3 commit 2531ae6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/unittests/StaticAnalyzer/ExprEngineVisitTest.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ TEST(ExprEngineVisitTest, checkLocationAndBindInitialization) {
165165
)",
166166
Diags));
167167

168-
// Look for any occurrence of AtDeclInit = true
169-
std::size_t BindPos = Diags.find("AtDeclInit = true");
170-
EXPECT_NE(BindPos, std::string::npos);
168+
EXPECT_TRUE(StringRef(Diags).contains("AtDeclInit = true"));
171169
}
172170

173171
} // namespace

0 commit comments

Comments
 (0)