Author: Kadir Cetinkaya Date: 2023-02-23T10:04:03+01:00 New Revision: 48027f03f2d5fef884ebe118c42f800b90fae2f9
URL: https://github.com/llvm/llvm-project/commit/48027f03f2d5fef884ebe118c42f800b90fae2f9 DIFF: https://github.com/llvm/llvm-project/commit/48027f03f2d5fef884ebe118c42f800b90fae2f9.diff LOG: [include-cleaner] Dont pass llvm::StringRef to gtest APIs Fixes https://github.com/llvm/llvm-project/issues/60884. Added: Modified: clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp b/clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp index 967ae829e778..c34c6c0a29a8 100644 --- a/clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp +++ b/clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp @@ -367,7 +367,7 @@ TEST(WalkUsed, FilterRefsNotSpelledInMainFile) { if (RefLoc.isValid()) { EXPECT_THAT(RefLoc, AllOf(expandedAt(MainFID, Main.point("expand"), &SM), spelledAt(MainFID, Main.point("spell"), &SM))) - << T.Main; + << T.Main.str(); } else { EXPECT_THAT(Main.points(), testing::IsEmpty()); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits