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:
kgeg401
2026-04-20 20:14:21 +08:00
committed by GitHub
co-authored by kgeg401 jiliang.ljl
parent c17bd8876e
commit 1e25294c07
21 changed files with 300 additions and 122 deletions
@@ -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());
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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 "";
}