Changeset View
Changeset View
Standalone View
Standalone View
duchain/helper.cpp
Context not available. | |||||
30 | #include <language/duchain/parsingenvironment.h> | 30 | #include <language/duchain/parsingenvironment.h> | ||
---|---|---|---|---|---|
31 | #include <language/duchain/types/unsuretype.h> | 31 | #include <language/duchain/types/unsuretype.h> | ||
32 | #include <language/duchain/types/integraltype.h> | 32 | #include <language/duchain/types/integraltype.h> | ||
33 | #include <language/duchain/types/arraytype.h> | ||||
33 | #include <interfaces/icore.h> | 34 | #include <interfaces/icore.h> | ||
34 | #include <interfaces/iprojectcontroller.h> | 35 | #include <interfaces/iprojectcontroller.h> | ||
35 | #include <interfaces/iuicontroller.h> | 36 | #include <interfaces/iuicontroller.h> | ||
Context not available. | |||||
44 | #include "declarations/classdeclaration.h" | 45 | #include "declarations/classdeclaration.h" | ||
45 | #include "declarations/classmethoddeclaration.h" | 46 | #include "declarations/classmethoddeclaration.h" | ||
46 | #include "declarations/functiondeclaration.h" | 47 | #include "declarations/functiondeclaration.h" | ||
47 | #include "types/indexedcontainer.h" | | |||
48 | #include "types/integraltypeextended.h" | 48 | #include "types/integraltypeextended.h" | ||
49 | #include "expressionparser.h" | 49 | #include "expressionparser.h" | ||
50 | #include "expressionvisitor.h" | 50 | #include "expressionvisitor.h" | ||
Context not available. | |||||
570 | } | 570 | } | ||
571 | 571 | | |||
572 | if (node->isVariadic != -1) { | 572 | if (node->isVariadic != -1) { | ||
573 | auto *container = new IndexedContainer(); | 573 | auto *container = new KDevelop::ArrayType(); | ||
574 | container->addEntry(type); | 574 | container->setElementType(type); | ||
575 | container->setPrettyName(IndexedString("array")); | | |||
576 | type = AbstractType::Ptr(container); | 575 | type = AbstractType::Ptr(container); | ||
577 | } | 576 | } | ||
578 | 577 | | |||
Context not available. |