feat(ci): integrate clang-tidy for changed C/C++ files (#116)
* feat(ci): add clang-tidy checks for changed cpp files * fix(ci): correct clang-tidy workflow heredoc indentation * test: stabilize fp16 euclidean matrix comparison * test: fix fp16 matrix CI and clang-tidy warnings * ci: scope clang-tidy PR and filter compile-db files * check nullptr only * fix nullptr * fix: format * chore: ignore c * fix: tests files * fix: workflow * fix: specify clang-tidy version * fix: filter regex * fix: more files * fix: update version * add thirdparty cache * add pipeline dependency * fix clang-tidy trigger --------- Co-authored-by: kgeg401 <kgeg401@users.noreply.github.com> Co-authored-by: jiliang.ljl <jiliang.ljl@alibaba-inc.com>
This commit is contained in:
co-authored by
kgeg401
jiliang.ljl
parent
c17bd8876e
commit
1e25294c07
@@ -152,7 +152,7 @@ ControlOp SearchCondCheckWalker::access(const QueryNode::Ptr &query_node,
|
||||
return ControlOp::BREAK;
|
||||
}
|
||||
// more than one vector query check.
|
||||
if (vector_rel_ != NULL) {
|
||||
if (vector_rel_ != nullptr) {
|
||||
err_msg_ = ailego::StringHelper::Concat(
|
||||
"more than one vector search is not supported. ", vector_rel_->text(),
|
||||
" ", query_rel_node->text());
|
||||
|
||||
@@ -20,9 +20,9 @@ SQLInfo::Ptr QueryParser::parse(const std::string &query) {
|
||||
ZVecSQLParser se_sql_parser_;
|
||||
|
||||
SQLInfo::Ptr sql_info = se_sql_parser_.parse(query);
|
||||
if (sql_info == NULL) {
|
||||
if (sql_info == nullptr) {
|
||||
err_msg_ = se_sql_parser_.err_msg();
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return sql_info;
|
||||
|
||||
@@ -49,7 +49,7 @@ const std::string &ZVecParser::formatted_tree() {
|
||||
}
|
||||
|
||||
std::string ZVecParser::to_formatted_string_tree(void *tree, void *parser) {
|
||||
if (tree == NULL || parser == NULL) {
|
||||
if (tree == nullptr || parser == nullptr) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user