From 384396d196f16b0e098556da2ea6b2d6d9c76165 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 6 Apr 2024 04:05:00 +0800 Subject: [PATCH] clean codes --- RedPandaIDE/parser/cpppreprocessor.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/RedPandaIDE/parser/cpppreprocessor.cpp b/RedPandaIDE/parser/cpppreprocessor.cpp index 53095fd0..bd8718d8 100644 --- a/RedPandaIDE/parser/cpppreprocessor.cpp +++ b/RedPandaIDE/parser/cpppreprocessor.cpp @@ -834,18 +834,6 @@ void CppPreprocessor::openInclude(QString fileName) innerMostFile->branches = mBranchResults.count(); } -// // Add the new file to the includes of the current file -// // Only add items to the include list of the given file if the file hasn't been scanned yet -// // The above is fixed by checking for duplicates. -// // The proper way would be to do backtracking of files we have FINISHED scanned. -// // These are not the same files as the ones in fScannedFiles. We have STARTED scanning these. -// { -// if Assigned(fCurrentIncludes) then -// with fCurrentIncludes^ do -// if not ContainsText(IncludeFiles, FileName) then -// IncludeFiles := IncludeFiles + AnsiQuotedStr(FileName, '"') + ','; -// } - // Create and add new buffer/position PParsedFile parsedFile = std::make_shared(); parsedFile->index = 0;