blob: 10224c6635160ebcd4e2264ff763f3c80a52544f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#include "cppargument.h"
#include <cplusplus/Symbol.h>
#include <cplusplus/Symbols.h>
#include <cplusplus/Overview.h>
#include <cplusplus/Literals.h>
namespace Scripting {
namespace Internal {
CppArgument *CppArgument::create(CPlusPlus::Argument* argument)
{
// Instance owned by QtScript
CppArgument* result = new CppArgument;
CPlusPlus::Overview o;
result->m_name = o(argument->name());
result->m_type = o(argument->type());
result->m_initializer = argument->initializer() ? QString::fromUtf8(argument->initializer()->chars()) : QString();
return result;
}
QString CppArgument::name() const
{
return m_name;
}
QString CppArgument::type() const
{
return m_type;
}
QString CppArgument::initializer() const
{
return m_initializer;
}
CppArgument::CppArgument()
{
}
} // namespace Internal
} // namespace Scripting
|