mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-16 04:12:03 +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
|
cat > "$tempdir/query" <<EOF
|
||||||
set output print
|
set output print
|
||||||
set bind-root false
|
set bind-root false
|
||||||
m callExpr(callee(functionDecl(matchesName("::$query")).bind("func")))
|
m callExpr(callee(functionDecl(matchesName("::$query"), unless(isStatic())).bind("func")))
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
"${command[@]}" -exec "$CLANG_QUERY" -p "$BUILD_DIR/compile_commands.json" -f "$tempdir/query" {} + | \
|
"${command[@]}" -exec "$CLANG_QUERY" -p "$BUILD_DIR/compile_commands.json" -f "$tempdir/query" {} + | \
|
||||||
|
|||||||
Reference in New Issue
Block a user