diff options
Diffstat (limited to 'src/plugins/cppeditor/testcases/move-class/complex/theclass.h_expected')
-rw-r--r-- | src/plugins/cppeditor/testcases/move-class/complex/theclass.h_expected | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/testcases/move-class/complex/theclass.h_expected b/src/plugins/cppeditor/testcases/move-class/complex/theclass.h_expected new file mode 100644 index 0000000000..c7db776d27 --- /dev/null +++ b/src/plugins/cppeditor/testcases/move-class/complex/theclass.h_expected @@ -0,0 +1,29 @@ +#ifndef PROJECT_INTERNAL_THECLASS_H +#define PROJECT_INTERNAL_THECLASS_H + +namespace Project { +namespace Internal { + +class TheClass +{ +public: + TheClass() = default; + + void defined(); + void undefined(); + + template<typename T> T defaultValue() const; +private: + class Private; + class Undefined; + static inline bool doesNotNeedDefinition = true; + static bool needsDefinition; + int m_value = 0; +}; + +template<typename T> T TheClass::defaultValue() const { return T(); } + +} // namespace Internal +} // namespace Project + +#endif // PROJECT_INTERNAL_THECLASS_H |