Author: Jan Svoboda Date: 2026-08-13T07:16:14Z New Revision: 7ffe49868dfce2e865d7431c80a5bad458d39d62
URL: https://github.com/llvm/llvm-project/commit/7ffe49868dfce2e865d7431c80a5bad458d39d62 DIFF: https://github.com/llvm/llvm-project/commit/7ffe49868dfce2e865d7431c80a5bad458d39d62.diff LOG: [clang][test] Cache failed stats in a unit test (#215969) I'd like to remove the possibility of disabling caching of failures in `FileManager`, and this test is one of the few users of that feature. There's no reason to disable failure caching in the `FileManager` here. Added: Modified: clang/unittests/Frontend/ASTUnitTest.cpp Removed: ################################################################################ diff --git a/clang/unittests/Frontend/ASTUnitTest.cpp b/clang/unittests/Frontend/ASTUnitTest.cpp index 08dcd80a414ef..813da472ebe06 100644 --- a/clang/unittests/Frontend/ASTUnitTest.cpp +++ b/clang/unittests/Frontend/ASTUnitTest.cpp @@ -193,7 +193,7 @@ TEST_F(ASTUnitTest, ModuleTextualHeader) { CInvok, PCHContainerOps, DiagOpts, Diags, FileMgr, false, CaptureDiagsKind::None, 1, TU_Complete, false, false, false); ASSERT_TRUE(AU); - auto File = AU->getFileManager().getFileRef("Textual.h", false, false); + auto File = AU->getFileManager().getFileRef("Textual.h"); ASSERT_TRUE(bool(File)); // Verify that we do not crash here. EXPECT_TRUE( _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
