ClickHouse/base
Azat Khuzhin bedf208cbd Use fmt::runtime() for LOG_* for non constexpr
Here is oneliner:

    $ gg 'LOG_\(DEBUG\|TRACE\|INFO\|TEST\|WARNING\|ERROR\|FATAL\)([^,]*, [a-zA-Z]' -- :*.cpp :*.h | cut -d: -f1 | sort -u | xargs -r sed -E -i 's#(LOG_[A-Z]*)\(([^,]*), ([A-Za-z][^,)]*)#\1(\2, fmt::runtime(\3)#'

Note, that I tried to do this with coccinelle (tool for semantic
patchin), but it cannot parse C++:

    $ cat fmt.cocci
    @@
    expression log;
    expression var;
    @@

    -LOG_DEBUG(log, var)
    +LOG_DEBUG(log, fmt::runtime(var))

I've also tried to use some macros/templates magic to do this implicitly
in logger_useful.h, but I failed to do so, and apparently it is not
possible for now.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>

v2: manual fixes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-02-01 14:30:03 +03:00
..
base Update sort to pdqsort 2022-01-30 19:49:48 +00:00
bridge Fix w/o ODBC build 2022-01-20 10:02:02 +03:00
daemon Use fmt::runtime() for LOG_* for non constexpr 2022-02-01 14:30:03 +03:00
glibc-compatibility Revert #33957 2022-01-30 01:09:15 +03:00
harmful Update harmful.c 2021-12-22 22:55:55 +03:00
loggers Merge pull request #33695 from amosbird/buildimprove 2022-01-19 03:19:22 +03:00
pcg-random Remove ya.make 2021-09-25 04:22:54 +03:00
readpassphrase Manipulate with -Wreserved-identifier only if HAS_RESERVED_IDENTIFIER has been detected 2021-10-03 17:42:36 +04:00
widechar_width Remove ya.make 2021-09-25 04:22:54 +03:00
CMakeLists.txt Move code around to avoid dlsym on Musl 2021-12-24 12:25:27 +03:00