Re: [Cocci] [PATCH v3 02/26] parsing_cocci: AST: Add ParenType and FunctionType to SmPL ASTs

2020-03-20 Thread Markus Elfring
> ParenType and FunctionType are types present in the C AST that > are not present in the SmPL AST. Can the understanding of mentioned details be improved by reconsidering the usage of abbreviations? > In the pursuit of aligning both the C and SmPL ASTs, I find this approach also helpful. >

[Cocci] [PATCH v3 02/26] parsing_cocci: AST: Add ParenType and FunctionType to SmPL ASTs

2020-03-20 Thread Jaskaran Singh
ParenType and FunctionType are types present in the C AST that are not present in the SmPL AST. In the pursuit of aligning both the C and SmPL ASTs, add these types to the SmPL ASTs. For a function pointer as follows: int (*x)(params) The SmPL AST would be as follows: ParenType -> Pointer ->