Commit Graph

35 Commits

Author SHA1 Message Date
Alexey Milovidov
21382afa2b Check for punctuation 2023-07-25 06:10:04 +02:00
Alexander Tokmakov
70d1adfe4b
Better formatting for exception messages (#45449)
* save format string for NetException

* format exceptions

* format exceptions 2

* format exceptions 3

* format exceptions 4

* format exceptions 5

* format exceptions 6

* fix

* format exceptions 7

* format exceptions 8

* Update MergeTreeIndexGin.cpp

* Update AggregateFunctionMap.cpp

* Update AggregateFunctionMap.cpp

* fix
2023-01-24 00:13:58 +03:00
MeenaRenganathan22
28d5c3cf7f Addressed the review comments 2023-01-11 17:00:10 -08:00
MeenaRenganathan22
25c94dfa83 Changes to support the CRC32 in PowerPC to address the WeakHash collision issue. Update the reference to support the hash values based on the specific platform 2023-01-10 21:20:13 -08:00
Suzy Wang
d57a8b502d s390x crc32 fix 2022-11-25 13:12:11 -08:00
Azat Khuzhin
4e76629aaf Fixes for -Wshorten-64-to-32
- lots of static_cast
- add safe_cast
- types adjustments
  - config
  - IStorage::read/watch
  - ...
- some TODO's (to convert types in future)

P.S. That was quite a journey...

v2: fixes after rebase
v3: fix conflicts after #42308 merged
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-21 13:25:19 +02:00
Li Yin
4088c0a7f3 Automated function registration
Automated register all functions with below naming convention by
iterating through the symbols:
void DB::registerXXX(DB::FunctionFactory &)
2022-07-29 15:39:50 +08:00
Robert Schulze
0a4eccb73e
Activated a bunch of LLVM 12/13/14 clang-tidy warnings
Omitted new checks which produce too many matches or which are
controversial (e.g. readability-identifier-length).

New checks:

- misc-misleading-bidirectional + misc-misleading-identifier

  Detects potential attack as described in the Trojan Source attack

- modernize-macro-to-enum

  Replaces groups of adjacent macros with an unscoped anonymous enum

- modernize-shrink-to-fit

  Replace copy and swap tricks on shrinkable containers with the
  shrink_to_fit() method call

- modernize-use-transparent-functors

  Prefer transparent functors to non-transparent ones

- modernize-use-uncaught-exceptions

  This check will warn on calls to std::uncaught_exception and replace
  them with calls to std::uncaught_exceptions (uncaught_exception was
  deprecated with C++17)

- performance-no-int-to-ptr

  Diagnoses every integer to pointer cast

- readability-duplicate-include

  Looks for duplicate includes and removes them

- readability-redundant-preprocessor

  Finds potentially redundant preprocessor directives

- bugprone-lambda-function-name

  Checks for attempts to get the name of a function from within a lambda
  expression

- bugprone-redundant-branch-condition

  Finds condition variables in nested if statements that were also
  checked in the outer if statement and were not changed

- bugprone-shared-ptr-array-mismatch

  Finds initializations of C++ shared pointers to non-array type that
  are initialized with an array

- bugprone-stringview-nullptr

  Checks for various ways that the const CharT* constructor of
  std::basic_string_view can be passed a null argument and replaces them
  with the default constructor in most cases

- bugprone-suspicious-memory-comparison

  Finds potentially incorrect calls to memcmp() based on properties of
  the arguments
2022-05-03 09:22:11 +02:00
Robert Schulze
118e94523c
Activate clang-tidy warning "readability-container-contains"
This check suggests replacing <Container>.count() by
<Container>.contains() which is more speaking and in case of
multimaps/multisets also faster.
2022-04-18 23:53:11 +02:00
Alexey Milovidov
fe6b7c77c7 Rename "common" to "base" 2021-10-02 10:13:14 +03:00
Alexey Milovidov
be884a89f8 Minor fixes for min/sim hash 2020-12-29 13:16:43 +03:00
Nikolai Kochetov
be4832de6d Try fix test. 2020-12-27 12:54:59 +03:00
Nikolai Kochetov
f1d433be4c Add min word size. 2020-12-25 21:03:08 +03:00
Nikolai Kochetov
31191d8396 Add min word size. 2020-12-25 20:58:44 +03:00
Nikolai Kochetov
f8854fed5c Update test. 2020-12-25 20:30:44 +03:00
Nikolai Kochetov
b53442e521 Fixing build. 2020-12-25 20:00:42 +03:00
Nikolai Kochetov
2c06a65e1c Fixing build. 2020-12-25 19:56:51 +03:00
Nikolai Kochetov
309b0a860a Fixing build. 2020-12-25 19:55:15 +03:00
Nikolai Kochetov
ba5d2617ff Fixing build. 2020-12-25 19:49:55 +03:00
Nikolai Kochetov
7e7998f121 Fixing build. 2020-12-25 19:11:05 +03:00
Nikolai Kochetov
281d87a007 Fixing build. 2020-12-25 19:04:55 +03:00
Nikolai Kochetov
94f4a15cd0 Feractoring StringHash 2020-12-25 18:19:30 +03:00
Nikolai Kochetov
1a8dcc2b27 Feractoring StringHash 2020-12-25 17:18:41 +03:00
Nikolai Kochetov
04d55dc495 Feractoring StringHash 2020-12-25 14:22:48 +03:00
Nikolai Kochetov
e7ffc13524 Renames. 2020-12-24 18:49:05 +03:00
Yatsishin Ilya
f36e8f13c0 more fixes after rebase 2020-12-24 13:48:10 +03:00
Nikolai Kochetov
396ea14f67 Fix special build. 2020-12-22 18:29:32 +03:00
Nikolai Kochetov
2c07516aee Fix special build and style. 2020-12-22 18:17:23 +03:00
Nikolai Kochetov
74671bda4a Fix special build 2020-12-22 11:01:13 +03:00
Nikolai Kochetov
78429eca70 Refactor code a little bit more. 2020-12-21 17:30:17 +03:00
Nikolai Kochetov
29e0b4ec40 Refactor cose a little bit more. 2020-12-21 17:14:05 +03:00
Nikolai Kochetov
c3a99e21bd Refactor some code. 2020-12-21 14:39:17 +03:00
feng lv
7b4fc7300c update
fix

fix

fix
2020-06-22 23:53:51 +08:00
feng lv
83c0807b43 update
update name
2020-05-22 23:45:09 +08:00
fenglv
64207abd0a update 2020-05-18 22:56:29 +08:00