Hello all!
I have a question about CC. I'm not sure if this is a bug or feature, but if I have two projects in the workspace, I get suggestion from BOTH projects, regardless of the active project. After a quick look at nativeparser.cpp (and a little help from ollydbg), I found the following:
nativeparser.cpp line 606.
// NOTE: it actually forces reparsing of workspace
void NativeParser::ForceReparseActiveProject()
{
m_Parser.Clear();
UpdateClassBrowser();
ProjectsArray* projects = Manager::Get()->GetProjectManager()->GetProjects();
for (size_t i = 0; i < projects->GetCount(); ++i)
{
AddParser(projects->Item(i), false);
}
}
Note: the comment:
/ /NOTE: it actually forces reparsing of workspaceShould it just reparse the active project? As in:
void NativeParser::ForceReparseActiveProject()
{
m_Parser.Clear();
UpdateClassBrowser();
AddParser(Manager::Get()->GetProjectManager()->GetActiveProject(), false);
}
Thx,
daniloz