mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-15 20:02:05 +00:00
[gl-check] exclude local static functions which match
This commit is contained in:
committed by
Geoffrey McRae
parent
8301ec5ae5
commit
a32ba63c90
2
gl-check
2
gl-check
@@ -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" {} + | \
|
||||
|
||||
Reference in New Issue
Block a user