cstyle
cstyle copied to clipboard
Is it possible to create regex based on type of variable/function?
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?
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]+)+$)