Skip to content

Commit

Permalink
提升版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherbeer authored Apr 29, 2022
1 parent ba11d88 commit 2c046a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion c-cpp-rules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "C/C++ 安全规则集合",
"version": "1.1.1",
"version": "1.2.0",
"encoding": "utf-8",

"//": [
Expand Down
4 changes: 2 additions & 2 deletions c-cpp-rules.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="logo.png" align="right"/>

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

> 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.*”

Expand Down Expand Up @@ -3082,7 +3082,7 @@ const char* foo() {
return M("x", "y"); // Non-compliant
}
```
在早期标准(ISO 9899:1990)对这种情况没有明确定义,后续标准对其进行了约束,但 MSVC 等编译器至今仍不把这种问题视作编译错误,需要特别注意。
早期标准(ISO 9899:1990)对这种情况没有明确定义,后续标准对其进行了约束,但 MSVC 等编译器至今仍不把这种问题视作编译错误,需要特别注意。
<br/>
<br/>

Expand Down
2 changes: 1 addition & 1 deletion c-ub-list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="logo.png" align="right"/>

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

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

Expand Down
2 changes: 1 addition & 1 deletion cpp-ub-list.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<img src="logo.png" align="right"/>

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

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

Expand Down

0 comments on commit 2c046a5

Please sign in to comment.