We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5edf937 commit 12a2fd1Copy full SHA for 12a2fd1
doc/procedure/cpp_code.txt
@@ -433,6 +433,22 @@ Casing styles:
433
- Global variables: PascalCase
434
- Namespaces: PascalCase
435
436
+When overriding virtual function, use override specifier on function declaration.
437
+ BAD
438
+ class Server : public IServer
439
+ {
440
+ ...
441
+ virtual void OnClientConnected(IClient* client);
442
443
+ };
444
+ GOOD
445
446
447
448
+ virtual void OnClientConnected(IClient* client) override;
449
450
451
+
452
Checking function return values:
453
Functions that return bool or a pointer will be checked without
454
comparing, if they return true or false.
0 commit comments