forked from qt-creator/qt-creator
Merge commit 'origin/1.3'
Conflicts: src/plugins/debugger/gdb/gdbengine.cpp Needed changes: src/plugins/qt4projectmanager/qtversionmanager.cpp
This commit is contained in:
@@ -54,6 +54,8 @@
|
||||
|
||||
# if defined(CPLUSPLUS_BUILD_LIB)
|
||||
# define CPLUSPLUS_EXPORT Q_DECL_EXPORT
|
||||
# elif defined(CPLUSPLUS_BUILD_STATIC_LIB)
|
||||
# define CPLUSPLUS_EXPORT
|
||||
# else
|
||||
# define CPLUSPLUS_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
|
@@ -190,6 +190,7 @@ bool CheckDeclaration::visit(SimpleDeclarationAST *ast)
|
||||
fun->setScope(_scope);
|
||||
fun->setName(name);
|
||||
fun->setMethodKey(semantic()->currentMethodKey());
|
||||
fun->setVirtual(ty.isVirtual());
|
||||
if (isQ_SIGNAL)
|
||||
fun->setMethodKey(Function::SignalMethod);
|
||||
else if (isQ_SLOT)
|
||||
@@ -281,6 +282,7 @@ bool CheckDeclaration::visit(FunctionDefinitionAST *ast)
|
||||
}
|
||||
|
||||
Function *fun = funTy->asFunctionType();
|
||||
fun->setVirtual(ty.isVirtual());
|
||||
fun->setStartOffset(tokenAt(ast->firstToken()).offset);
|
||||
fun->setEndOffset(tokenAt(ast->lastToken()).offset);
|
||||
if (ast->declarator)
|
||||
|
@@ -80,6 +80,10 @@ FullySpecifiedType FullySpecifiedType::qualifiedType() const
|
||||
ty.setExtern(false);
|
||||
ty.setMutable(false);
|
||||
ty.setTypedef(false);
|
||||
|
||||
ty.setInline(false);
|
||||
ty.setVirtual(false);
|
||||
ty.setExplicit(false);
|
||||
return ty;
|
||||
}
|
||||
|
||||
@@ -209,4 +213,19 @@ FullySpecifiedType FullySpecifiedType::simplified() const
|
||||
return *this;
|
||||
}
|
||||
|
||||
void FullySpecifiedType::copySpecifiers(const FullySpecifiedType &type)
|
||||
{
|
||||
// class storage specifiers
|
||||
f._isFriend = type.f._isFriend;
|
||||
f._isRegister = type.f._isRegister;
|
||||
f._isStatic = type.f._isStatic;
|
||||
f._isExtern = type.f._isExtern;
|
||||
f._isMutable = type.f._isMutable;
|
||||
f._isTypedef = type.f._isTypedef;
|
||||
|
||||
// function specifiers
|
||||
f._isInline = type.f._isInline;
|
||||
f._isVirtual = type.f._isVirtual;
|
||||
f._isExplicit = type.f._isExplicit;
|
||||
}
|
||||
|
||||
|
@@ -121,6 +121,8 @@ public:
|
||||
|
||||
FullySpecifiedType simplified() const;
|
||||
|
||||
void copySpecifiers(const FullySpecifiedType &type);
|
||||
|
||||
private:
|
||||
Type *_type;
|
||||
struct Flags {
|
||||
|
Reference in New Issue
Block a user