cstyle icon indicating copy to clipboard operation
cstyle copied to clipboard

Is it possible to create regex based on type of variable/function?

Open nagyation opened this issue 5 years ago • 1 comments

I wanted to use this for checking RTOS like style, which it use different prefix based on variable/function type, for ex: void vSomething etc.. so is there a possible way or implementation to filter variables using types?

nagyation avatar Oct 09 '19 15:10 nagyation

I wanted to use this for checking RTOS like style, which it use different prefix based on variable/function type, for ex: void vSomething etc.. so is there a possible way or implementation to filter variables using types?

Just modify function_decl rule to this:

function_decl:	(main|^[uivp]([A-Z][a-z]+)+$)

qianchenzhumeng avatar Dec 30 '21 13:12 qianchenzhumeng