WIP restart of lib
This commit is contained in:
parent
e239bfa0ea
commit
9f6b90d596
36 changed files with 15951 additions and 2 deletions
9
parser/build.sh
Executable file
9
parser/build.sh
Executable 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]'
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue