Skip to content

Commit 48027f0

Browse files
committed
[include-cleaner] Dont pass llvm::StringRef to gtest APIs
Fixes llvm/llvm-project#60884.
1 parent 279b498 commit 48027f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ TEST(WalkUsed, FilterRefsNotSpelledInMainFile) {
367367
if (RefLoc.isValid()) {
368368
EXPECT_THAT(RefLoc, AllOf(expandedAt(MainFID, Main.point("expand"), &SM),
369369
spelledAt(MainFID, Main.point("spell"), &SM)))
370-
<< T.Main;
370+
<< T.Main.str();
371371
} else {
372372
EXPECT_THAT(Main.points(), testing::IsEmpty());
373373
}

0 commit comments

Comments
 (0)