WIP restart of lib

This commit is contained in:
Maix0 2024-06-24 00:20:08 +02:00
parent e239bfa0ea
commit 9f6b90d596
36 changed files with 15951 additions and 2 deletions

9
parser/build.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
clang -Wno-unused-command-line-argument -Xclang -ast-dump=json ./lib.c -fsyntax-only -ferror-limit=99999 |
jq '.inner[] | select(.name) | select((.name | startswith("_"))| not)' |
jq 'select((.kind == "VarDecl" or .kind == "FunctionDecl") | not)' |
jq 'walk(if type == "object" then del(.loc, .id, .range, .typeAliasDeclId, .isReferenced) else . end)' |
jq 'select(.type?.qualType // .name // "" | startswith("_") | not) | select(.name // "" | endswith("_t") | not )' |
jq -n '[inputs]'