Hello VS Code users,
I am happy to announce that the new version 4.10 of VS Code is now available on SonarLint!
This release contains an update of the C++ analyzer that will help analyzing C++23 code with 7 new rules:
- S7032: init-statement in if/switch/for-range should declare a variable/simple-declaration
- S7033: if consteval should be used instead of if (std::is_constant_evaluated())
- S7034: Use contains on string and string_view instead of find or equivalents
- S7035: Use “to_underlying” to get the value of an enum
- S7038: std::stringstream or std::spanstream should be used instead of std::strstream
- S7040: Escape sequences should use the delimited form ( \u{}, \o{}, \x{})
- S7042: std::views::as_const should be used to prevent modifying range elements
You can learn more about this update here.
You can find the release notes for this version here.
Thank you for your continued support!
Farah