25 Commits
Author SHA1 Message Date
Raúl MarínandClaude Opus 4.8 678be2b274 Mark target-specific code macros as whitespace-sensitive in .clang-format
`DECLARE_X86_64_V3_SPECIFIC_CODE` / `DECLARE_X86_64_V4_SPECIFIC_CODE` wrap a block
of code in their macro arguments; without listing them as whitespace-sensitive,
clang-format reflows that block and fights the surrounding code.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-18 17:18:48 +02:00
rienath e121799b71 Allow short case labels on a single line 2026-06-04 09:40:44 +00:00
Raúl MarínandGitHub 5179df6ee1 Revert "Revert "Change default x86 build target from x86-64-v2 (SSE4.2) to x86-64-v3 (AVX2)"" 2026-05-15 13:05:50 +02:00
Raúl Marín 17fa20521b Revert "Change default x86 build target from x86-64-v2 (SSE4.2) to x86-64-v3 (AVX2)"
This reverts PR #90043 (merge commit e21a84e759) due to performance
regressions observed in the MSan build.

Note: a post-merge follow-up commit (9df07df5a0, "Pass nm/ar/objcopy
paths from CMake to localize_rust_c_symbols.sh") added an `NM_PATH`
lookup in `cmake/tools.cmake` for the now-removed
`cmake/localize_rust_c_symbols.sh` helper. The lookup is left in place
by this revert; it is unused but harmless and can be cleaned up
separately.
2026-05-14 19:33:58 +02:00
Raúl Marín edf135f89f Fix 2026-02-20 18:54:18 +01:00
Raúl Marín 9ae054547a Fix style 2025-01-30 16:34:43 +01:00
Raúl Marín f34a47d3a6 Stop clang-format trying to remove branches in for loops 2024-05-06 20:58:22 +02:00
Igor Nikonov 8cc4f2c669 Fix: incorrect brace style 2023-10-30 16:37:12 +00:00
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
prollerandalexey-milovidov 2252864b3a clang-format Server.cpp (#550)
* clang-format Server.cpp

* SCOPE_EXIT

* fix sort includes

* format
2017-03-03 22:59:42 +04:00
prollerandalexey-milovidov 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
prollerandalexey-milovidov 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