Can really rememberjfouche wrote:Why did you put an empty file name in MACROS table ?
Sure, go a head and change it
Eran
Can really rememberjfouche wrote:Why did you put an empty file name in MACROS table ?
Code: Select all
#include "test.h" // not parsed, because not found by file crawler
#include <winnt.h> // OK
Code: Select all
wxArrayString projects;
GetProjectList ( projects );
std::vector<wxFileName> projectFiles;
for ( size_t i=0; i<projects.GetCount(); i++ ) {
ProjectPtr proj = GetProject ( projects.Item ( i ) );
if ( proj ) {
proj->GetFiles( projectFiles, true );
}
}
// Create a parsing request
ParseRequest *parsingRequest = new ParseRequest();
for (size_t i=0; i<projectFiles.size(); i++) {
// filter any non valid coding file
if(!TagsManagerST::Get()->IsValidCtagsFile(projectFiles.at(i)))
continue;
parsingRequest->_workspaceFiles.push_back( projectFiles.at(i).GetFullPath().mb_str(wxConvUTF8).data() );
}
I managed to reduce the overhead of loading the file, the main slow down was this line:eranif wrote:- But the biggest problem is that 'Manager::UpdatePreprocessorFile' is *very* slow. I tried it on codelite workspace and it took several seconds for a file to load, but since we also call it from 'OnPageChanged' switching tabs also become laggy (2-3 seconds to swtich a tab...)
Code: Select all
if (projFileName == filename) {
Code: Select all
#if MACRO == 7