The Microsoft C++ Code Evaluation instrument has been up to date to offer higher monitoring, justification, and general administration of warning suppressions. These enhancements result in a extra maintainable and strong code base, in line with Microsoft.
Enhancements to Microsoft C++ Code Evaluation have been detailed in a July 15 weblog put up. Enhancements to warning suppression supply improved auditability and overview, enhanced code maintainability, higher administration of technical debt, and consistency throughout suppression mechanisms, Microsoft stated. With the updates to the static evaluation instrument, which is built-in into the Visible Studio 2022 17.14 IDE, help for gsl::suppress
has been up to date to align with the most recent C++ Core Tips syntax. Warnings now could be suppressed by utilizing the gsl::suppress
attribute.
As well as, the #pragma warning
has been prolonged to help the justification discipline. Each #pragma warning(suppress)
and [[gsl::suppress]]
supply fine-grained management over warning suppression, with #pragma warning(suppress)
being a common MSVC (Microsoft Visible C++) compiler mechanism that can be utilized for any compiler warning, whereas [[gsl::suppress]]
will solely suppress warnings emitted by Microsoft C++ Code Evaluation. Microsoft recommends utilizing [[gsl::suppress]]
for suppressing Microsoft C++ Code Evaluation warnings every time potential.