I want to follow the CppCoreGuidelines as close as possible but I have some problems configuring clang-format.
How do I configure clang-format to conform with the isocpp core guidelines?
For example the following guideline gives me some trouble.
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rl-ptr
clang-format always seems to choose T &operator[](size_t);
and I am unable to find the correct setting for it.
Add this to your .clang-format
PointerAlignment: Left
You can test it online in the clang-format-configurator
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With