ClickHouse/programs/client
Robert Schulze 89aa9ae00f
Fixed clang-tidy check "bugprone-branch-clone"
The check is currently *not* part of .clang-tidy. It complains about:
(1) "switch has multiple consecutive identical branches"
(2) "repeated branch in conditional chain"

About (1): Lots of findings in switches were about redundant
"[[fallthrough]]" in places where the compiler would not warn anyways. I
have cleaned these up.

About (2): In if-else_if-else chains, fixing the warning would usually
mean concatenating multiple if-conditions. As this would reduce
readability in most cases, I did not fix these places.

Because of (2), I also refrained from adding "bugprone-branch-clone" to
.clang-tidy.
2022-04-30 19:40:28 +02:00
..
clickhouse-client.cpp
clickhouse-client.xml
Client.cpp Fixed clang-tidy check "bugprone-branch-clone" 2022-04-30 19:40:28 +02:00
Client.h Support test mode for clickhouse-local 2022-03-14 12:02:06 +01:00
CMakeLists.txt Support test mode for clickhouse-local 2022-03-14 12:02:06 +01:00