Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/duchain/clangducontext.h
Show All 24 Lines | |||||
25 | #include <language/duchain/ducontext.h> | 25 | #include <language/duchain/ducontext.h> | ||
26 | #include <language/duchain/topducontext.h> | 26 | #include <language/duchain/topducontext.h> | ||
27 | 27 | | |||
28 | template<class BaseContext, int IdentityT> | 28 | template<class BaseContext, int IdentityT> | ||
29 | class ClangDUContext : public BaseContext | 29 | class ClangDUContext : public BaseContext | ||
30 | { | 30 | { | ||
31 | public: | 31 | public: | ||
32 | template<class Data> | 32 | template<class Data> | ||
33 | ClangDUContext(Data& data) : BaseContext(data) { | 33 | explicit ClangDUContext(Data& data) : BaseContext(data) { | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | ///Parameters will be reached to the base-class | 36 | ///Parameters will be reached to the base-class | ||
37 | template<typename... Params> | 37 | template<typename... Params> | ||
38 | ClangDUContext(Params... params) : BaseContext(params...) { | 38 | explicit ClangDUContext(Params... params) : BaseContext(params...) { | ||
39 | static_cast<KDevelop::DUChainBase*>(this)->d_func_dynamic()->setClassId(this); | 39 | static_cast<KDevelop::DUChainBase*>(this)->d_func_dynamic()->setClassId(this); | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | virtual QWidget* createNavigationWidget(KDevelop::Declaration* decl = 0, KDevelop::TopDUContext* topContext = 0, | 42 | virtual QWidget* createNavigationWidget(KDevelop::Declaration* decl = 0, KDevelop::TopDUContext* topContext = 0, | ||
43 | const QString& htmlPrefix = QString(), const QString& htmlSuffix = QString(), | 43 | const QString& htmlPrefix = QString(), const QString& htmlSuffix = QString(), | ||
44 | KDevelop::AbstractNavigationWidget::DisplayHints hints = KDevelop::AbstractNavigationWidget::NoHints) const override; | 44 | KDevelop::AbstractNavigationWidget::DisplayHints hints = KDevelop::AbstractNavigationWidget::NoHints) const override; | ||
45 | 45 | | |||
46 | enum { | 46 | enum { | ||
Show All 11 Lines |