[clang] 285ab3e - [clang] Fix tests build after 537344fc

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 6 15:50:09 PDT 2023


Author: Jan Svoboda
Date: 2023-10-06T15:49:57-07:00
New Revision: 285ab3e936018c8f46594f721a9a2d2a45a0597d

URL: https://github.com/llvm/llvm-project/commit/285ab3e936018c8f46594f721a9a2d2a45a0597d
DIFF: https://github.com/llvm/llvm-project/commit/285ab3e936018c8f46594f721a9a2d2a45a0597d.diff

LOG: [clang] Fix tests build after 537344fc

Added: 
    

Modified: 
    clang/unittests/Basic/SourceManagerTest.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Basic/SourceManagerTest.cpp b/clang/unittests/Basic/SourceManagerTest.cpp
index bcd2becc2a92293..557281499998ae1 100644
--- a/clang/unittests/Basic/SourceManagerTest.cpp
+++ b/clang/unittests/Basic/SourceManagerTest.cpp
@@ -406,6 +406,7 @@ TEST_F(SourceManagerTest, getLineNumber) {
 
 struct FakeExternalSLocEntrySource : ExternalSLocEntrySource {
   bool ReadSLocEntry(int ID) override { return {}; }
+  int getSLocEntryID(SourceLocation::UIntTy SLocOffset) override { return 0; }
   std::pair<SourceLocation, StringRef> getModuleImportLoc(int ID) override {
     return {};
   }


        


More information about the cfe-commits mailing list