You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R4.1 全局名称应遵循合理的命名方式:
// In global scope
const int i = 0; // Non-compliant, name too short
typedef int t; // Non-compliant, name too short
class A { .... }; // Non-compliant, name too short
...
R4.10 全局对象只应为常量或静态对象:
// In global scope
...
const int k = 0; // Compliant
The text was updated successfully, but these errors were encountered:
比如4.1要求全局变量名不能太短,在4.10的示例中推荐了单个字符变量名,对随手翻阅党不友好😂
R4.1 全局名称应遵循合理的命名方式:
// In global scope
const int i = 0; // Non-compliant, name too short
typedef int t; // Non-compliant, name too short
class A { .... }; // Non-compliant, name too short
...
R4.10 全局对象只应为常量或静态对象:
// In global scope
...
const int k = 0; // Compliant
The text was updated successfully, but these errors were encountered: