CLion 2022.1:在模板中:调用“__builtin_operator_delete”选择非常规的释放函数

CLIon 2022.1: In template: call to '__builtin_operator_delete' selects non-usual deallocation function in

为什么会出现这样的静态分析器错误,编译时没有错误
在版本 2021.1 上没有这样的错误

clangd v15.0.0 标志:-Wno-unused-variable,-Wno-infinite-recursion,-Werror=implicit-function-declaration,-Wshadow,-Wno-shadow-field-in-constructor-modified,-Wno-shadow-ivar,-Wuninitialized ,-Wunused-label,-Wunused-lambda-capture

代码:std::make_sharedhttplib::Server();
(也适用于 std::regex、nlohmann::json)

截图:

code

clang settings

似乎是一个已知问题。 请在此处查看可能的解决方案:https://youtrack.jetbrains.com/issue/CPP-29091/In-template-call-to-builtin-operator-delete-selects-non-usual-de#focus=Comments-27-6067190.0-0