How to mark a region so clang-format won't touch it?
Solution 1:
In newer version, you can surround a section of code with:
// clang-format off
...
// clang-format on
Solution 2:
Try adding a //
comment marker after each line, this may do it. I had the same issue in Eclipse and learned this trick.
sql_create_6(stock, 1, 6, //
mysqlpp::sql_char, item, //
mysqlpp::sql_bigint, num, //
mysqlpp::sql_double, weight, //
mysqlpp::sql_decimal, price, //
mysqlpp::sql_date, sdate, //
mysqlpp::Null<mysqlpp::sql_mediumtext>, description)