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.