The Microsoft C++ Code Evaluation software has been up to date to offer higher monitoring, justification, and total administration of warning suppressions. These enhancements result in a extra maintainable and sturdy code base, based on Microsoft.
Enhancements to Microsoft C++ Code Evaluation had been detailed in a July 15 weblog put up. Enhancements to warning suppression provide improved auditability and evaluate, enhanced code maintainability, higher administration of technical debt, and consistency throughout suppression mechanisms, Microsoft mentioned. With the updates to the static evaluation software, which is built-in into the Visible Studio 2022 17.14 IDE, assist for gsl::suppress
has been up to date to align with the newest C++ Core Tips syntax. Warnings now may be suppressed by utilizing the gsl::suppress
attribute.
As well as, the #pragma warning
has been prolonged to assist the justification subject. Each #pragma warning(suppress)
and [[gsl::suppress]]
provide fine-grained management over warning suppression, with #pragma warning(suppress)
being a normal 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.