Have get_variables in the cxxpaser a bug ?
Posted: Fri Jan 16, 2009 6:33 am
I test testVarParser(buf);
But some function name will be parsing to var name.
Think you for your reply
input
output
But some function name will be parsing to var name.
Think you for your reply
input
Code: Select all
template <class T, class B> struct TagEntry
{
class TagEntry::SimpleClass {
}
virtual foo();
}
int a();
int b();
int c(int);
int c(int,int);
int dd;
extern int ddd;
Code: Select all
read: 181
===== Testing Variable parser ======
{m_name=b, m_defaultValue=, m_lineno=9, m_starAmp=, m_type=int, m_isConst=false, m_typeScope=, m_tem
plateDecl=, m_isPtr=false, m_isTemplate=false }
Pattern: /^; int b $/
{m_name=c, m_defaultValue=, m_lineno=10, m_starAmp=, m_type=int, m_isConst=false, m_typeScope=, m_te
mplateDecl=, m_isPtr=false, m_isTemplate=false }
Pattern: /^; int c $/
{m_name=c, m_defaultValue=, m_lineno=11, m_starAmp=, m_type=int, m_isConst=false, m_typeScope=, m_te
mplateDecl=, m_isPtr=false, m_isTemplate=false }
Pattern: /^; int c $/
{m_name=dd, m_defaultValue=, m_lineno=12, m_starAmp=, m_type=int, m_isConst=false, m_typeScope=, m_t
emplateDecl=, m_isPtr=false, m_isTemplate=false }
Pattern: /^; int dd $/
{m_name=ddd, m_defaultValue=, m_lineno=13, m_starAmp=, m_type=int, m_isConst=false, m_typeScope=, m_
templateDecl=, m_isPtr=false, m_isTemplate=false }
Pattern: /^ int ddd $/