Again, C++ Core Guidelines does NOT require the "K&R-derived layout". It only recommends it when there are no constraints or better ideas. Whatever the layout, be consistent. Use a "" tool such as clang tidy to find issues and uniformly format code.
Posted 2 years ago (20 October 2022)