@@ -856,7 +856,6 @@ namespace cling {
856
856
// Add the input to the memory buffer, parse it, and add it to the AST.
857
857
IncrementalParser::EParseResult
858
858
IncrementalParser::ParseInternal (llvm::StringRef input) {
859
- llvm::errs () << " ParseInternal: " << input << " \n " ;
860
859
if (input.empty ()) return IncrementalParser::kSuccess ;
861
860
862
861
Sema& S = getCI ()->getSema ();
@@ -898,15 +897,9 @@ namespace cling {
898
897
FileID FID;
899
898
// Create FileEntry and FileID for the current buffer.
900
899
// Enabling the completion point only works on FileEntries.
901
- time_t FakeModTime = std::time (nullptr );
902
900
FileEntryRef FE =
903
901
SM.getFileManager ().getVirtualFileRef (source_name.str (), InputSize,
904
- FakeModTime /* mod time*/ );
905
- // Force creation of HeaderFileInfo for the virtual file.
906
- // This ensures that when the virtual file is used as the includer,
907
- // Clang will find a valid HeaderFileInfo.
908
- m_CI->getPreprocessor ().getHeaderSearchInfo ().getFileInfo (FE);
909
-
902
+ 0 /* mod time*/ );
910
903
SM.overrideFileContents (FE, std::move (MB));
911
904
FID = SM.createFileID (FE, NewLoc, SrcMgr::C_User);
912
905
if (CO.CodeCompletionOffset != -1 ) {
@@ -948,7 +941,6 @@ namespace cling {
948
941
else if (Diags.getNumWarnings ())
949
942
return kSuccessWithWarnings ;
950
943
951
- llvm::errs () << " ParseInternal: done!\n " ;
952
944
return kSuccess ;
953
945
}
954
946
0 commit comments