Microsoft C++ static evaluation software bolsters warning suppressions

Learn extra at:

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, in line with Microsoft.

Enhancements to Microsoft C++ Code Evaluation had been detailed in a July 15 blog post. Enhancements to warning suppression supply improved auditability and evaluate, enhanced code maintainability, higher administration of technical debt, and consistency throughout suppression mechanisms, Microsoft stated. With the updates to the static evaluation software, which is built-in into the Visual 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 will be suppressed by utilizing the gsl::suppress attribute.

As well as, the #pragma warning has been prolonged to help the justification subject. 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 each time attainable.

Turn leads into sales with free email marketing tools (en)

Leave a reply

Please enter your comment!
Please enter your name here