Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign

New code completion remarks/issues

<< < (2/54) > >>

MortenMacFly:

--- Quote from: oBFusCATed on September 15, 2009, 12:47:07 pm ---why not add some kind of functionality/application test for the code completion.

--- End quote ---
Absolutely true!
It could be as simple as a project that contains 1..n files (classes) with special items to be resolved. We could start with Lievens class(es) provided here. :-) Just name them e.h. anonymous_namespace_test.cpp or alike... so we know by filename what's the actual test in the class.

blueshake:

--- Quote ---namespace vipnt
{

namespace
{
   const in NumberOfZones = 6;
}

...
--- End quote ---
if we give the anonymous namespace a name .for example qq.
the cc work again.
and it is strange in function NativeParser::FindCurrentFunctionStart:
watch these codes and turn it on.

--- Code: ---                #if wxCHECK_VERSION(2, 9, 0)
                    Manager::Get()->GetLogManager()->DebugLog(F(_T("Current function: %s (at line %d)"), token->DisplayName().wx_str(), token->m_ImplLine));
                #else
                    Manager::Get()->GetLogManager()->DebugLog(F(_T("Current function: %s (at line %d)"), token->DisplayName().c_str(), token->m_ImplLine));
                #endif

--- End code ---
if the anonymous namespace in the namespace vipnt,
the code::block debug print Current function: CStop::RePaint() : void (at line 19)
if the anonymous namespace out the namespace vipnt,
the code::block debug print Current function: vipnt::CStop::RePaint() : void (at line 19)
the difference is the outside  one has the vipnt:: but the inside one has nothing.
and this will affect the NativeParser::FindCurrentFunctionToken
it make the RePaint's parentscope can not be add to search socpe ,so the cc didn't work.
above is my guess.

killerbot:
but note that if I leave the anonymous namespace nested inside vipnt, but move it between the 2 methods, the parsing also works again.

blueshake:
ok,I move the the anonymous namespace to the position between the 2 methods.
yes ,it work.
and the code::block debug print Current function: vipnt::CStop::RePaint() : void (at line 19)
the output is the same to the anonymous outside the vipnt which cc work too.

MortenMacFly:

--- Quote from: blueshake on September 15, 2009, 01:24:12 pm ---namespace
{
   const in NumberOfZones = 6;
}

--- End quote ---
Are you aware that this is NOT a legal paragraph? There is no type called "in"... I guess it should read "int". The parser gets confused by that probably. If I change the type to "int" it works pretty well here (latest CC from trunk).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version