Open zhyh2010 opened 1 year ago
also, sometimes , i want to generate code like this, add inline const before Get Method class WatchData { public: inline const std::string &GetSubscribeName() const { return SubscribeName; } inline void SetSubscribeName(const std::string &subscribeName) { mSubscribeName = subscribeName; }
inline const std::string &GetWatchJobName() const { return WatchJobName; } inline void SetWatchJobName(const std::string &watchJobName) { mWatchJobName = watchJobName; }
inline const std::vector
inline const std::vector
private:
std::string mSubscribeName;
std::string mWatchJobName;
std::vector
I found https://github.com/BigBahss/vscode-cmantic/issues/11, but it does not work for me. my code is like this: class WatchData { public: std::string GetSubscribeName() const { return SubscribeName; } void SetSubscribeName(const std::string &subscribeName) { mSubscribeName = subscribeName; }
private: std::string mSubscribeName; };
however, when use the plugin, i cannot generate code above. Is there any way to generate code for customization