~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to CxxParser/variable.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-02-10 02:27:55 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20090210022755-mxlvij3ndab1n5ty
Tags: upstream-1.0.2759+dfsg
ImportĀ upstreamĀ versionĀ 1.0.2759+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        m_starAmp = src.m_starAmp;
27
27
        m_lineno = src.m_lineno;
28
28
        m_isConst = src.m_isConst;
 
29
        m_defaultValue = src.m_defaultValue;
29
30
        return *this;
30
31
}
31
32
 
41
42
        m_starAmp = "";
42
43
        m_lineno = 0;
43
44
        m_isConst = false;
 
45
        m_defaultValue = "";
44
46
}
45
47
 
46
48
void Variable::Print()
47
49
{
48
 
        fprintf(        stdout, "{m_name=%s, m_lineno=%d, m_starAmp=%s, m_type=%s, m_isConst=%s, m_typeScope=%s, m_templateDecl=%s, m_isPtr=%s, m_isTemplate=%s }\n", 
49
 
                                m_name.c_str(), 
50
 
                                m_lineno, 
51
 
                                m_starAmp.c_str(), 
52
 
                                m_type.c_str(), 
53
 
                                m_isConst ? "true" : "false", 
54
 
                                m_typeScope.c_str(), 
 
50
        fprintf(        stdout, "{m_name=%s, m_defaultValue=%s, m_lineno=%d, m_starAmp=%s, m_type=%s, m_isConst=%s, m_typeScope=%s, m_templateDecl=%s, m_isPtr=%s, m_isTemplate=%s }\n",
 
51
                                m_name.c_str(),
 
52
                                m_defaultValue.c_str(),
 
53
                                m_lineno,
 
54
                                m_starAmp.c_str(),
 
55
                                m_type.c_str(),
 
56
                                m_isConst ? "true" : "false",
 
57
                                m_typeScope.c_str(),
55
58
                                m_templateDecl.c_str(),
56
 
                                m_isPtr ? "true" : "false", 
 
59
                                m_isPtr ? "true" : "false",
57
60
                                m_isTemplate ? "true" : "false");
58
61
        fprintf( stdout, "Pattern: %s\n", m_pattern.c_str());
59
62
        fflush(stdout);