Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Placement of const with clang-format

Tags:

clang-format has tons of configuration options regarding whitespace and also some about code order (order of includes). Is it possible to reorder const-qualifiers so that they are placed to the right of the respective type?

Example: The declaration const int x = 0; should be formatted to int const x = 0;.

like image 863
pschill Avatar asked Sep 12 '17 12:09

pschill


1 Answers

No, according to the current documentation of clang-format there is no mention of such feature.

like image 94
anakin Avatar answered Sep 17 '22 14:09

anakin