Toolset update: VS 2022 17.12 Preview 2, Clang 18.1.8 by StephanTLavavej · Pull Request #4947 · microsoft/STL (original) (raw)

Fixes #1586.

📜 Changelog

📝 Code Format Overhaul

clang-format 18 has noticeably improved its handling of concepts and variable templates. I was able to remove lots of forced wrapping and complete suppression, while needing very few manual adjustments.

As always, the goal is to rely on clang-format to achieve consistency and general readability, not pixel-perfection. I reviewed all of the regen changes, and manually adjusted the ones I thought were obnoxious. Similarly, I removed clang-format suppression when I thought the result was reasonable, even if it was a significant appearance change. We should strive to rely on clang-format for the vast majority of the codebase, giving it only gentle nudges with forced wrapping, and resorting to suppression only when it wants to do something egregious or we need to do something specific for readability or to stay in sync with external sources.

I also explicitly documented my clang-format update process, so we have one less tacit set of steps to perform.

⚙️ Commits

😻 Help wanted!

✅ STL-ASan-CI passed

On the first try! https://dev.azure.com/vclibs/STL/_build/results?buildId=17504&view=results