.cpp: global assist fixed, jump fixed, duplicates fixed #1078, #1066

git-svn-id: svn://ultimatepp.org/upp/trunk@8494 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-06-01 15:04:52 +00:00
parent 883a3e26dc
commit dedd05a7f1
10 changed files with 89 additions and 56 deletions

View file

@ -173,6 +173,7 @@ void Cpp::DoFlatInclude(const String& header_path)
void Cpp::Do(const String& sourcefile, Stream& in, const String& currentfile, bool get_macros)
{
LLOG("Cpp::Do " << sourcefile << ", current: " << currentfile);
if(visited.Find(currentfile) >= 0 || visited.GetCount() > 20000)
return;
visited.Add(currentfile);