~npalix/coccinelle/upstream

« back to all changes in this revision

Viewing changes to parsing_cocci/ast0_cocci.mli

  • Committer: Julia Lawall
  • Author(s): Keisuke Nishimura
  • Date: 2021-06-19 21:45:04 UTC
  • Revision ID: git-v1:4d1edb18c28dc480671a1c59c560cb7a31c45d63
parser_cocci/ast0: Add support for attributes in function decl

This series adds support for attributes in function declarations in the SmPL parser.
int __attribute__((attr)) func();

These styles of attributes are common in the Linux kernel.

Signed-off-by: Keisuke Nishimura <mumumu0722@gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
236
236
  | UnInit of Ast_cocci.storage mcode option * typeC * attr list * ident *
237
237
        attr list * string mcode (* ; *)
238
238
  | FunProto of
239
 
        fninfo list * ident (* name *) *
 
239
        fninfo list * attr list * ident (* name *) *
240
240
        string mcode (* ( *) * parameter_list *
241
241
        (string mcode (* , *) * string mcode (* ...... *) ) option *
242
242
        string mcode (* ) *) * string mcode (* ; *)