Code Cleanup - termDispatch.hpp & adaptDispatch.hpp overrides #1216

Closed
opened 2026-01-30 22:19:23 +00:00 by claunia · 4 comments
Owner

Originally created by @dlong11 on GitHub (May 19, 2019).

Originally assigned to: @subhasan on GitHub.

Minor code cleanup

The ITermDispatch overridden methods in terminal/src/terminal/adapter/termDispatch.hpp & terminal/src/terminal/adapter/adaptDispatch.hpp do not follow
C.128: Virtual functions should specify exactly one of virtual, override, or final guideline.

Originally created by @dlong11 on GitHub (May 19, 2019). Originally assigned to: @subhasan on GitHub. Minor code cleanup The ITermDispatch overridden methods in terminal/src/terminal/adapter/termDispatch.hpp & terminal/src/terminal/adapter/adaptDispatch.hpp do not follow [C.128: Virtual functions should specify exactly one of virtual, override, or final guideline. ](http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c128-virtual-functions-should-specify-exactly-one-of-virtual-override-or-final)
Author
Owner

@dlong11 commented on GitHub (May 19, 2019):

I just noticed that InteractDispatch.hpp has the same issue. (in this case, it is the IInterractDispatch overrides). I can modify this issue or create a new issue. Let me know what you think is best.

Side note - I noticed these when doing a code review. I am assuming the Core guideline analyzer isn't being run as part of the CI process. Is the plan to do this?

@dlong11 commented on GitHub (May 19, 2019): I just noticed that InteractDispatch.hpp has the same issue. (in this case, it is the IInterractDispatch overrides). I can modify this issue or create a new issue. Let me know what you think is best. Side note - I noticed these when doing a code review. I am assuming the Core guideline analyzer isn't being run as part of the CI process. Is the plan to do this?
Author
Owner

@zadjii-msft commented on GitHub (May 20, 2019):

You're right, they probably shouldn't be virtual.

I believe we never turned the analyzer on because so much of the code was written before we started conforming to that standard, that we'd have spent entire releases just cleaning it up. @adiviness can comment more.

@zadjii-msft commented on GitHub (May 20, 2019): You're right, they probably shouldn't be `virtual`. I believe we never turned the analyzer on because so much of the code was written before we started conforming to that standard, that we'd have spent entire releases just cleaning it up. @adiviness can comment more.
Author
Owner

@adiviness commented on GitHub (May 21, 2019):

Currently we don't have a static analyzer looking at the cpp core check stuff. In /src there is a ruleset file that I think is empty and it was only set up on the /buffer/out directory when the AuditCode configuration was specified.

@adiviness commented on GitHub (May 21, 2019): Currently we don't have a static analyzer looking at the cpp core check stuff. In `/src` there is a ruleset file that I think is empty and it was only set up on the `/buffer/out` directory when the `AuditCode` configuration was specified.
Author
Owner

@DHowett-MSFT commented on GitHub (May 25, 2019):

This was fixed in #1004.

@DHowett-MSFT commented on GitHub (May 25, 2019): This was fixed in #1004.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1216