~ubuntu-branches/ubuntu/trusty/anjuta/trusty

« back to all changes in this revision

Viewing changes to plugins/language-support-cpp-java/cxxparser/function-result.cpp

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-08-17 23:48:26 UTC
  • mfrom: (1.1.50)
  • Revision ID: package-import@ubuntu.com-20120817234826-fvk3rfp6nmfaqi9p
Tags: 2:3.5.5-0ubuntu1
* New upstream release.
* debian/control.in:
  - Bump vala dependency to 0.18 series
  - Drop graphviz from build-depends
* debian/watch: Watch for unstable releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2
 
/*
3
 
 * anjuta
4
 
 * Copyright (C) Eran Ifrah (Main file for CodeLite www.codelite.org/ )
5
 
 * Copyright (C) Massimo Cora' 2009-2010 <maxcvs@email.it> (Customizations for Anjuta)
6
 
 * 
7
 
 * anjuta is free software: you can redistribute it and/or modify it
8
 
 * under the terms of the GNU General Public License as published by the
9
 
 * Free Software Foundation, either version 3 of the License, or
10
 
 * (at your option) any later version.
11
 
 * 
12
 
 * anjuta is distributed in the hope that it will be useful, but
13
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
 
 * See the GNU General Public License for more details.
16
 
 * 
17
 
 * You should have received a copy of the GNU General Public License along
18
 
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
 */
20
 
 
21
 
#include "function-result.h"
22
 
 
23
 
Function::Function()
24
 
{
25
 
        reset();
26
 
}
27
 
 
28
 
Function::~Function()
29
 
{
30
 
}
31
 
 
32
 
void Function::reset()
33
 
{
34
 
        m_name = "";
35
 
        m_scope = "";
36
 
        m_returnValue.reset();
37
 
        m_name = "";
38
 
        m_signature = "";
39
 
        m_lineno = 0;
40
 
        m_retrunValusConst = "";
41
 
        m_isVirtual = false;
42
 
        m_isPureVirtual = false;
43
 
        m_isConst = false;
44
 
}
45
 
 
46
 
void Function::print()
47
 
{
48
 
        fprintf(        
49
 
                                stdout, "{m_name=%s, m_isConst=%s, m_lineno=%d, m_scope=%s, m_signature=%s, m_isVirtual=%s, m_isPureVirtual=%s, m_retrunValusConst=%s\nm_returnValue=", 
50
 
                                m_name.c_str(), 
51
 
                                m_isConst ? "yes" : "no",
52
 
                                m_lineno, 
53
 
                                m_scope.c_str(), 
54
 
                                m_signature.c_str(), 
55
 
                                m_isVirtual ? "yes" : "no", 
56
 
                                m_isPureVirtual ? "yes" : "no", 
57
 
                                m_retrunValusConst.c_str()
58
 
                        );
59
 
                                
60
 
        m_returnValue.print();
61
 
        fprintf(stdout, "}\n");
62
 
        fflush(stdout);
63
 
}
64