diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2025-11-17 07:50:28 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2025-11-17 08:54:02 +0000 |
| commit | a41f43a1ab652ec0629a63d0812a30bfec0e0faf (patch) | |
| tree | 8e9cbf006b8801400fbdb2b538b1f9755141230f /pkg/declextract/interface.go | |
| parent | cbc18b106abc7ee5cbca73a11b24265328d29516 (diff) | |
pkg/clangtool: make more generic
Make it possible to use pkg/clangtool with other types than declextract.Output.
Diffstat (limited to 'pkg/declextract/interface.go')
| -rw-r--r-- | pkg/declextract/interface.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/declextract/interface.go b/pkg/declextract/interface.go index f386f398b..73806ec4b 100644 --- a/pkg/declextract/interface.go +++ b/pkg/declextract/interface.go @@ -8,6 +8,7 @@ import ( "slices" "strings" + "github.com/google/syzkaller/pkg/clangtool" "github.com/google/syzkaller/pkg/cover" ) @@ -55,7 +56,7 @@ func (ctx *context) noteInterface(iface *Interface) { } func (ctx *context) finishInterfaces() { - ctx.interfaces = sortAndDedupSlice(ctx.interfaces) + ctx.interfaces = clangtool.SortAndDedupSlice(ctx.interfaces) count := make(map[string]int) for _, iface := range ctx.interfaces { count[iface.Type+iface.Name]++ @@ -77,7 +78,7 @@ func (ctx *context) finishInterfaces() { iface.Access = AccessUnknown } } - ctx.interfaces = sortAndDedupSlice(ctx.interfaces) + ctx.interfaces = clangtool.SortAndDedupSlice(ctx.interfaces) } func (ctx *context) processFunctions() { |
