Commit Graph

17 Commits

Author SHA1 Message Date
Amos Bird
4a4c5eef09
Tweak for clang-format 17 2023-09-28 15:11:56 +08:00
Robert Schulze
76c8f451ad
clang-format: Disable namespace indentation and omit {} in if/for/while
1. Disables namespace indentation in accordance with 16. of (*) and the
   majority of the codebase.
2. Disables {} for single-statement if/for/while in accordance with 17.
   of (*) and the majority of the codebase.

Note: clang-format is used manually and voluntarily, usually only on new
files. Nothing is automatically reformatted, this is only about how new
files look.

Motivated by https://github.com/ClickHouse/ClickHouse/pull/54115#discussion_r1322741846.

(*) https://clickhouse.com/docs/en/development/style#formatting
2023-09-12 19:20:22 +00:00
ltrk2
50430ed304 Configure rule for concepts requires clause 2023-06-05 06:55:52 -07:00
cluster
a123250a40 remove duplicate indentwith
IndentWidth key shoudle be unique
2023-04-19 00:05:52 +08:00
vdimir
bc905d969b
add BeforeLambdaBody to .clang-format 2022-02-11 16:51:45 +01:00
Alexey Milovidov
dc086b20a9 Fixed wrong code around Memory Profiler 2020-03-03 03:24:44 +03:00
Ivan Lezhankin
1934706ca9 [WIP] 2020-01-21 19:39:52 +03:00
proller
5e89894b98 Fix style 2018-12-10 18:50:58 +03:00
proller
837629fbf6 Better .clang-format and uncrustify.cfg 2018-11-29 15:45:34 +03:00
Ivan Lezhankin
aeb0759f22 Improve clang-format style 2018-11-12 15:26:15 +03:00
Alexey Milovidov
d765173568 Format clang-format [#CLICKHOUSE-2] 2018-05-06 09:06:09 +03:00
proller
6801046eb9 clang-format: AlignEscapedNewlinesLeft: true 2017-04-07 16:25:07 +03:00
Alexey Milovidov
1e22b308d9 Changed tabs to spaces in editor configs and in style guide [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
proller
f651637da4 Fix auto formatting of union {} 2017-03-31 18:21:48 +03:00
proller
2252864b3a clang-format Server.cpp (#550)
* clang-format Server.cpp

* SCOPE_EXIT

* fix sort includes

* format
2017-03-03 22:59:42 +04:00
proller
f8d2f19280 Fix odbc include, clang-format fixes, misc (#484)
* Cmake: fix fallback to internal libs if no external found

* wip

* style

* fix
2017-02-13 17:59:34 +04:00
proller
4beb53d43e Add .clang-format with near current style (#383)
* renamed:    debian/compressor-metrika-yandex.install -> debian/clickhouse-compressor-metrika-yandex.install

* Add clang-format config

* add message
2017-02-01 23:28:22 +04:00