Developing indexer

This commit is contained in:
Mirek Fidler 2022-07-20 16:14:13 +02:00
parent b16713e74c
commit 78dc90e9c2
34 changed files with 1059 additions and 219 deletions

View file

@ -5,11 +5,12 @@
void AssistEditor::SyncHeaders()
{
// hdepend.CacheTime();
TIMESTOP("SyncHeaders");
hdepend.TimeDirty();
hdepend.SetDirs(theide->GetCurrentIncludePath() + ";" + GetClangInternalIncludes());
master_source.Clear();
String editfile = NormalizePath(theide->editfile);
if(editfile.GetCount() && !IsSourceFile(editfile)) {
if(editfile.GetCount() && IsCHeaderFile(editfile)) {
for(int pass = 0; pass < 2; pass++) { // all packages in second pass
const Workspace& wspc = GetIdeWorkspace();
for(int i = 0; i < wspc.GetCount(); i++) { // find package of included file