[gl-check] exclude local static functions which match

This commit is contained in:
Geoffrey McRae authored and Geoffrey McRae committed 2026-07-16 05:34:09 +10:00
1 parent 8301ec5ae5
commit a32ba63c90
1 file changed
+1 -1
+1 -1
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" {} + | \