diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-04-08 14:11:26 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2025-04-09 10:27:41 +0000 |
| commit | 1aed810c86069f8b9b117ccccf083e98bf0da74c (patch) | |
| tree | e6841902edef7496b3813eea3e31c7c599625c62 /tools/syz-declextract/testdata/functions.c.json | |
| parent | 6dfb898e263c6fdb948f1578b0dada1e15b6764e (diff) | |
tools/syz-declextract: extend test data
Add few interesting cases for scope analysis.
Move functions related to resource to the header file,
they must be visible in every file to work.
Diffstat (limited to 'tools/syz-declextract/testdata/functions.c.json')
| -rw-r--r-- | tools/syz-declextract/testdata/functions.c.json | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/syz-declextract/testdata/functions.c.json b/tools/syz-declextract/testdata/functions.c.json index ecb95affc..6d636233e 100644 --- a/tools/syz-declextract/testdata/functions.c.json +++ b/tools/syz-declextract/testdata/functions.c.json @@ -44,7 +44,8 @@ }, { "name": "__fget_light", - "file": "functions.c", + "file": "include/fs.h", + "is_static": true, "scopes": [ { "arg": -1 @@ -53,7 +54,8 @@ }, { "name": "alloc_fd", - "file": "functions.c", + "file": "include/fs.h", + "is_static": true, "scopes": [ { "arg": -1, @@ -84,7 +86,8 @@ }, { "name": "from_kuid", - "file": "functions.c", + "file": "include/fs.h", + "is_static": true, "scopes": [ { "arg": -1, |
