Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/codecompletion/completionhelper.h
Show All 22 Lines | |||||
23 | #define COMPLETIONHELPER_H | 23 | #define COMPLETIONHELPER_H | ||
24 | 24 | | |||
25 | #include <QStringList> | 25 | #include <QStringList> | ||
26 | #include <QVector> | 26 | #include <QVector> | ||
27 | #include <clang-c/Index.h> | 27 | #include <clang-c/Index.h> | ||
28 | 28 | | |||
29 | #include <language/duchain/duchainpointer.h> | 29 | #include <language/duchain/duchainpointer.h> | ||
30 | 30 | | |||
31 | struct FuncParameterInfo | ||||
32 | { | ||||
33 | QString type; | ||||
34 | QString id; | ||||
35 | /// Returns true if types are equal, id is ignored | ||||
36 | bool operator==(const FuncParameterInfo& rhs) const { return type == rhs.type; } | ||||
37 | }; | ||||
38 | Q_DECLARE_TYPEINFO(FuncParameterInfo, Q_MOVABLE_TYPE); | ||||
39 | using FuncParameterList = QVector<FuncParameterInfo>; | ||||
40 | | ||||
31 | struct FuncOverrideInfo | 41 | struct FuncOverrideInfo | ||
32 | { | 42 | { | ||
33 | QString returnType; | 43 | QString returnType; | ||
34 | QString name; | 44 | QString name; | ||
35 | QStringList params; | 45 | FuncParameterList params; | ||
36 | bool isVirtual; | 46 | bool isPureVirtual; | ||
37 | bool isConst; | 47 | bool isConst; | ||
48 | /// Returns true if equal, isPureVirtual & parameter ids are ignored | ||||
38 | bool operator==(const FuncOverrideInfo& rhs) const; | 49 | bool operator==(const FuncOverrideInfo& rhs) const; | ||
39 | }; | 50 | }; | ||
40 | 51 | | |||
41 | struct FuncImplementInfo | 52 | struct FuncImplementInfo | ||
42 | { | 53 | { | ||
43 | bool isConstructor; | 54 | bool isConstructor; | ||
44 | bool isDestructor; | 55 | bool isDestructor; | ||
45 | QString templatePrefix; | 56 | QString templatePrefix; | ||
Show All 32 Lines |