Changeset View
Changeset View
Standalone View
Standalone View
duchain/dumptypes.h
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef DUMPTYPES_H | 19 | #ifndef DUMPTYPES_H | ||
20 | #define DUMPTYPES_H | 20 | #define DUMPTYPES_H | ||
21 | 21 | | |||
22 | #include <language/duchain/types/typesystem.h> | 22 | #include <language/duchain/types/typesystem.h> | ||
23 | #include "phpduchainexport.h" | 23 | #include "phpduchainexport.h" | ||
24 | 24 | | |||
25 | #include <QSet> | ||||
26 | | ||||
25 | namespace Php | 27 | namespace Php | ||
26 | { | 28 | { | ||
27 | 29 | | |||
28 | class KDEVPHPDUCHAIN_EXPORT DumpTypes : protected KDevelop::TypeVisitor | 30 | class KDEVPHPDUCHAIN_EXPORT DumpTypes : protected KDevelop::TypeVisitor | ||
29 | { | 31 | { | ||
30 | public: | 32 | public: | ||
31 | DumpTypes(); | 33 | DumpTypes(); | ||
32 | virtual ~DumpTypes(); | 34 | ~DumpTypes() override; | ||
33 | 35 | | |||
34 | void dump(const KDevelop::AbstractType* type); | 36 | void dump(const KDevelop::AbstractType* type); | ||
35 | 37 | | |||
36 | protected: | 38 | protected: | ||
37 | virtual bool preVisit(const KDevelop::AbstractType * type); | 39 | bool preVisit(const KDevelop::AbstractType * type) override; | ||
38 | virtual void postVisit(const KDevelop::AbstractType *); | 40 | void postVisit(const KDevelop::AbstractType *) override; | ||
39 | 41 | | |||
40 | virtual void visit(const KDevelop::IntegralType *); | 42 | void visit(const KDevelop::IntegralType *) override; | ||
41 | 43 | | |||
42 | virtual bool visit(const KDevelop::AbstractType *); | 44 | bool visit(const KDevelop::AbstractType *) override; | ||
43 | 45 | | |||
44 | virtual bool visit(const KDevelop::PointerType * type); | 46 | bool visit(const KDevelop::PointerType * type) override; | ||
45 | virtual void endVisit(const KDevelop::PointerType *); | 47 | void endVisit(const KDevelop::PointerType *) override; | ||
46 | 48 | | |||
47 | virtual bool visit(const KDevelop::ReferenceType * type); | 49 | bool visit(const KDevelop::ReferenceType * type) override; | ||
48 | virtual void endVisit(const KDevelop::ReferenceType *); | 50 | void endVisit(const KDevelop::ReferenceType *) override; | ||
49 | 51 | | |||
50 | virtual bool visit(const KDevelop::FunctionType * type); | 52 | bool visit(const KDevelop::FunctionType * type) override; | ||
51 | virtual void endVisit(const KDevelop::FunctionType *); | 53 | void endVisit(const KDevelop::FunctionType *) override; | ||
52 | 54 | | |||
53 | virtual bool visit(const KDevelop::StructureType * type); | 55 | bool visit(const KDevelop::StructureType * type) override; | ||
54 | virtual void endVisit(const KDevelop::StructureType *); | 56 | void endVisit(const KDevelop::StructureType *) override; | ||
55 | 57 | | |||
56 | virtual bool visit(const KDevelop::ArrayType * type); | 58 | bool visit(const KDevelop::ArrayType * type) override; | ||
57 | virtual void endVisit(const KDevelop::ArrayType *); | 59 | void endVisit(const KDevelop::ArrayType *) override; | ||
58 | 60 | | |||
59 | private: | 61 | private: | ||
60 | bool seen(const KDevelop::AbstractType* type); | 62 | bool seen(const KDevelop::AbstractType* type); | ||
61 | 63 | | |||
62 | class CppEditorIntegrator* m_editor; | 64 | class CppEditorIntegrator* m_editor; | ||
63 | int indent; | 65 | int indent; | ||
64 | QSet<const KDevelop::AbstractType*> m_encountered; | 66 | QSet<const KDevelop::AbstractType*> m_encountered; | ||
65 | }; | 67 | }; | ||
66 | } | 68 | } | ||
67 | 69 | | |||
68 | #endif // DUMPTYPES_H | 70 | #endif // DUMPTYPES_H | ||
69 | 71 | |