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
为什么会出现这样的静态分析器错误,编译时没有错误
在版本 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