Changeset View
Changeset View
Standalone View
Standalone View
duchain/navigation/declarationnavigationcontext.cpp
Context not available. | |||||
30 | #include <language/duchain/types/structuretype.h> | 30 | #include <language/duchain/types/structuretype.h> | ||
---|---|---|---|---|---|
31 | #include <language/duchain/types/functiontype.h> | 31 | #include <language/duchain/types/functiontype.h> | ||
32 | #include <language/duchain/types/integraltype.h> | 32 | #include <language/duchain/types/integraltype.h> | ||
33 | #include <language/duchain/types/arraytype.h> | ||||
33 | 34 | | |||
34 | #include "../types/indexedcontainer.h" | | |||
35 | #include "../declarations/classdeclaration.h" | 35 | #include "../declarations/classdeclaration.h" | ||
36 | #include <declarations/classmethoddeclaration.h> | 36 | #include <declarations/classmethoddeclaration.h> | ||
37 | #include <declarations/traitmethodaliasdeclaration.h> | 37 | #include <declarations/traitmethodaliasdeclaration.h> | ||
Context not available. | |||||
198 | 198 | | |||
199 | if (argDec && argDec->isVariadic()) { | 199 | if (argDec && argDec->isVariadic()) { | ||
200 | AbstractType::Ptr variadicType; | 200 | AbstractType::Ptr variadicType; | ||
201 | const auto indexed = argType.cast<IndexedContainer>(); | 201 | const auto a_type = argType.cast<KDevelop::ArrayType>(); | ||
202 | if (indexed && indexed->typesCount() == 1) { | 202 | if (a_type) { | ||
203 | variadicType = indexed->typeAt(0).abstractType(); | 203 | variadicType = a_type->elementType(); | ||
204 | } else { | 204 | } else { | ||
205 | variadicType = AbstractType::Ptr(new IntegralType(IntegralType::TypeMixed)); | 205 | variadicType = AbstractType::Ptr(new IntegralType(IntegralType::TypeMixed)); | ||
206 | } | 206 | } | ||
Context not available. |