Comments (3)
这种情况对象应该声明为 volatile
,应该属于第 10746 行和第 6507 行说明的情况吧。
Lines 10740 to 10746 in d06e2da
Lines 6502 to 6510 in d06e2da
from safe-rules.
也是,那我先关了,我们有一段代码是这样的
while (1) {
port = 0;
port = 1;
}
不过port是个对象等号是重载的
from safe-rules.
嗯嗯,可以强调一下“存在写入数据之外的副作用时,可不受本规则约束”
from safe-rules.
Related Issues (20)
- 补充volatile使用场景 HOT 1
- 把寄存器赋值给指针在驱动里是正常的 HOT 1
- 非常好的规范,请问下能推荐下能覆盖这些规则的静态检查工具吗? HOT 1
- 活捉错别字一只!
- 示例代码错误
- 文本编辑错误 HOT 1
- “replacement new”术语不规范
- 递归调用析构函数是UB
- C 头文件名不应被视为过时的 HOT 2
- R2.22 存在覆盖不完全的问题 HOT 3
- C++20 移除了“对有符号整数进行超出取值范围的左移运算”导致的未定义行为 HOT 1
- 修改“空指针”定义 HOT 1
- R5.1.21 "存在构造、析构的类" 描述不明确 HOT 2
- R2.20 windows 无法使用 `alloca.h` 标头 HOT 1
- `R14.18` 的观点非常值得商榷,且解释并不合理 HOT 3
- R1.2 中"避免避免敏感数据写入内存转储文件" 多了一个 "避免" HOT 1
- R2.15 中 "用 new 分配的数组" 是否考虑改为 "用 new[] 分配的数组" HOT 1
- “`R6.4.2` 禁用可变参数列表“中使用模板参数包的示例过时且糟糕,应该使用折叠表达式 HOT 1
- `Apache2.0` 开源协议不声明版权所有者吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safe-rules.