Placing const with clang-format

clang-format has many configuration options regarding spaces, as well as some of the code orders (order includes). Is it possible to reorder const constructors so that they are located to the right of the corresponding type?

Example. Declaration const int x = 0; must be formatted to int const x = 0; .

+7
c ++ clang-format
source share

No one has answered this question yet.

See related questions:

1250
Replacing a 32-bit loop counter with 64-bit values ​​results in crazy performance deviations
1239
What is the difference between const int *, const int * const and int const *?
838
How to convert std :: string to const char * or char *?
461
When should I really use noexcept?
7
How to specify clang format file?
4
clang-format Overriding multiline comments for WebKit style
3
clang-format will not attach braces if there is a new line
one
Is it possible to create custom rules for clang-format?
one
Indent for a specific preprocessor include blocks with clang-format
0
Enable forward header order with clang-format

All Articles