awjan
(Jan)
November 1, 2019, 8:57am
1
Noticed using latest version of SonarLint for Visual Studio (4.13.0.11687)
Rule 1199 which detects nested code blocks is falsely triggered by the usage of MFC TRY/CATCH macros. Simplified example:
TRY {
CFile::Remove(path);
} CATCH_ALL (ex) {
return false;
} END_CATCH_ALL
Abbas
(Abbas Sabra)
November 4, 2019, 3:56pm
3
Hello @awjan ,
Thanks for reporting this false-positive.
I created this ticket where you can follow the issue. It should be fixed in the next release planned at the end of this month.
Thanks,
Abbas
system
(system)
Closed
April 8, 2021, 9:18am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.