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

Pointer/Array not recognized

<< < (3/3)

MortenMacFly:

--- Quote from: MortenMacFly on November 18, 2011, 09:23:30 pm ---What about doing something like (untested, blind meta-code):

--- End quote ---
(...answering myself...:)
Raises immediately the question, what about such things then:

--- Code: ---inline const mynamespace::anothernamespace::std::vector<AClass*> GetAClassVec() {;}

--- End code ---
???

ollydbg:

--- Quote from: MortenMacFly on November 18, 2011, 09:28:58 pm ---
--- Quote from: MortenMacFly on November 18, 2011, 09:23:30 pm ---What about doing something like (untested, blind meta-code):

--- End quote ---
(...answering myself...:)
Raises immediately the question, what about such things then:

--- Code: ---inline const mynamespace::anothernamespace::std::vector<AClass*> GetAClassVec() {;}

--- End code ---

--- End quote ---
It works OK, because the next time we enter the if clause, the have the same m_Str == const.

--- Code: ---                else if (peek==ParserConsts::dcolon)
                {
                    if (   m_Str.IsEmpty()
                        || m_Str.Trim(true).Trim(false).IsSameAs(ParserConsts::kw_const)
                        || m_Str.Trim(true).Trim(false).IsSameAs(ParserConsts::kw_volatile) ) // what else?!
                        m_EncounteredTypeNamespaces.push(token); // it's a type's namespace
                    else
                        m_EncounteredNamespaces.push(token);
                    m_Tokenizer.GetToken(); // eat ::
                }
--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version