[Cocci] Source code analysis for header files

SF Markus Elfring elfring at users.sourceforge.net
Wed Dec 31 15:10:51 CET 2014


>>>> Can the tool "spatch" be instructed anyhow to analyse only
>>>> header files (*.h) instead of the usual source files (*.c)
>>>> after the parameter "--dir" was passed?
>>> No.
>> Thanks for your clarification.
>>
>> Will it eventually be quicker to determine the list
>> of header files by other software tools?
> Much quicker.

How do you think about an approach just to change the file
name extension from ".c" to ".h" occasionally?
Are there any more use cases around where
it makes also sense to search for source files
with other suffixes?

Regards,
Markus


More information about the Cocci mailing list