From e95b89bb35ab11badca23c9bb73cd492a35956ac Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 7 Jun 2015 15:21:44 +0000 Subject: [PATCH] cpp: this-> now shows private symbols too git-svn-id: svn://ultimatepp.org/upp/trunk@8523 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CppBase/ppconfig.cpp | 1 + uppsrc/ide/Assist.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/CppBase/ppconfig.cpp b/uppsrc/CppBase/ppconfig.cpp index 7614223c1..2d04ebdb7 100644 --- a/uppsrc/CppBase/ppconfig.cpp +++ b/uppsrc/CppBase/ppconfig.cpp @@ -30,6 +30,7 @@ String GetStdDefs() h = Split(ignore, ';'); for(int i = 0; i < h.GetCount(); i++) defs << "#define " << h[i] << "\n"; + defs << "#define NULL NULL"; return defs; } diff --git a/uppsrc/ide/Assist.cpp b/uppsrc/ide/Assist.cpp index 593ec5fb5..e097892e6 100644 --- a/uppsrc/ide/Assist.cpp +++ b/uppsrc/ide/Assist.cpp @@ -466,7 +466,7 @@ void AssistEditor::Assist() Index typeset = EvaluateExpressionType(parser, xp); for(int i = 0; i < typeset.GetCount(); i++) if(typeset[i].GetCount()) - GatherItems(typeset[i], true, in_types, false); + GatherItems(typeset[i], xp[0] != "this", in_types, false); } else { GatherItems(parser.current_scope, false, in_types, true);