[英]How to cause SAL compiler warnings in my own code using Visual C++ without running static code analysis
如果我在 VS 2019 中創建一個新的控制台項目並添加我自己的printf注釋實現並調用真正的printf和我的版本: 當我編譯文件時,我看到一個編譯器警告,提示誤用printf而不是誤用my_printf : 現在確實可以“在文件上運行代碼分析 (Ctrl+Shift+Alt+F7)”, ...