PVS Studio抱怨危险的表情。参数“MSG”必须由括号上下面的代码C++代码包围 #include <iostream>
#define X ("X")
#define Y ("Y")
#define Z ("Z")
#define FRED(msg) msg << Z // <<-- Warning from PVS Studio
#define WILMA(msg) X
我在我的项目Torrent File Editor中使用了PVS-Studio。有一个误报。 Here没有真正的问题,但我得到这样的错误: torrent-file-editor/abstracttreenode.h:138: error: V595 The '_parent' pointer was utilized before it was verified against nullptr.