[gl-check] exclude local static functions which match

This commit is contained in:
Geoffrey McRae
2026-07-16 01:28:32 +10:00
committed by Geoffrey McRae
parent 8301ec5ae5
commit a32ba63c90

View File

@@ -49,7 +49,7 @@ getCalls() {
cat > "$tempdir/query" <<EOF
set output print
set bind-root false
m callExpr(callee(functionDecl(matchesName("::$query")).bind("func")))
m callExpr(callee(functionDecl(matchesName("::$query"), unless(isStatic())).bind("func")))
EOF
"${command[@]}" -exec "$CLANG_QUERY" -p "$BUILD_DIR/compile_commands.json" -f "$tempdir/query" {} + | \