db/reload_partial.sh: update to handle hashed files
[smatch.git] / test-show-type.c
blob8396fdcf51f8c653940f3fbb324498f9664fab34
1 // SPDX-License-Identifier: MIT
3 #include <stdio.h>
4 #include "lib.h"
5 #include "symbol.h"
7 static void show_symbols(struct symbol_list *list)
9 struct symbol *sym;
11 FOR_EACH_PTR(list, sym) {
12 printf("%s;\n", show_typename(sym));
13 } END_FOR_EACH_PTR(sym);
16 int main(int argc, char **argv)
18 struct string_list *filelist = NULL;
19 char *file;
21 sparse_initialize(argc, argv, &filelist);
22 Wdecl = 0;
23 FOR_EACH_PTR(filelist, file) {
24 show_symbols(sparse(file));
25 } END_FOR_EACH_PTR(file);
27 return has_error;