Skip to content

Commit 2c046a5

Browse files
authored
提升版本号
1 parent ba11d88 commit 2c046a5

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

c-cpp-rules.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "C/C++ 安全规则集合",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"encoding": "utf-8",
55

66
"//": [

c-cpp-rules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="logo.png" align="right"/>
22

3-
# C/C++ 安全规则集合 ![Version](https://img.shields.io/badge/version-1.1.1-brightgreen)
3+
# C/C++ 安全规则集合 ![Version](https://img.shields.io/badge/version-1.2.0-brightgreen)
44

55
> Bjarne Stroustrup: “*C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off.*
66
@@ -3082,7 +3082,7 @@ const char* foo() {
30823082
return M("x", "y"); // Non-compliant
30833083
}
30843084
```
3085-
在早期标准(ISO 9899:1990)对这种情况没有明确定义,后续标准对其进行了约束,但 MSVC 等编译器至今仍不把这种问题视作编译错误,需要特别注意。
3085+
早期标准(ISO 9899:1990)对这种情况没有明确定义,后续标准对其进行了约束,但 MSVC 等编译器至今仍不把这种问题视作编译错误,需要特别注意。
30863086
<br/>
30873087
<br/>
30883088

c-ub-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="logo.png" align="right"/>
22

3-
# 附录:C 未定义行为成因列表 ![Version](https://img.shields.io/badge/version-1.1.1-brightgreen)
3+
# 附录:C 未定义行为成因列表 ![Version](https://img.shields.io/badge/version-1.2.0-brightgreen)
44

55
&emsp;&emsp;未定义的行为(Undefined Behavior),指程序不可预测的执行效果,一般由错误的代码实现引起。出于效率、兼容性等多方面原因,语言标准不便于定义错误程序的明确行为,而是将其统称为“未定义”的行为,可以是崩溃,也可以是非预期的任意表现,有些问题在编译器和执行环境的特殊处理下也可能不会造成实质性的危害,但不具备可移植性。代码质量管理的一个重要目标就是消除会导致未定义行为的代码。
66

cpp-ub-list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="logo.png" align="right"/>
22

3-
# 附录:C++ 未定义行为成因列表 ![Version](https://img.shields.io/badge/version-1.1.1-brightgreen)
3+
# 附录:C++ 未定义行为成因列表 ![Version](https://img.shields.io/badge/version-1.2.0-brightgreen)
44

55
&emsp;&emsp;未定义的行为(Undefined Behavior),指程序不可预测的执行效果,一般由错误的代码实现引起。出于效率、兼容性等多方面原因,语言标准不便于定义错误程序的明确行为,而是将其统称为“未定义”的行为,可以是崩溃,也可以是非预期的任意表现,有些问题在编译器和执行环境的特殊处理下也可能不会造成实质性的危害,但不具备可移植性。代码质量管理的一个重要目标就是消除会导致未定义行为的代码。
66

0 commit comments

Comments
 (0)