Revise C++ coding style using clang-format-18 with "east const"
Update clang-format.bash
to use clang-format-18
.
Add QualifierAlignment: Right
to enforce "east const" style.
Otherwise, the .clang-format
configuration needs no changes to
make the version 18 format close to what version 15 produced before.
Run the clang-format.bash
script to update all our C and C++ code to the new style.
See !272 (merged) for the prior update to clang-format-15
.
Issue: cmake/cmake#26123 (closed)
Edited by Brad King