search for: targetsomething

Displaying 1 result from an estimated 1 matches for "targetsomething".

2018 Jan 30
3
Coding standards: duplicating method comments?
...t is the policy on duplicating code comments for subclasses. To modify an example from that doc: """ // In Something.h: /// An abstraction for some complicated thing. class Something { public: /// Does foo and bar. virtual void fooBar(); }; """ Suppose we define TargetSomething.h, and give the same comment for fooBar there: """ class TargetSomething : public Something { public: /// Does foo and bar. void fooBar() override; }; """ Is this bad style? It seems the current codebase is inconsistent on this point. The upside of such duplicatio...