Forwarding this conversation to m.d.static-analysis.
Chris Jones wrote:
> Unfortunately, no. Porky.py operates on a representation of C++
> programs that lacks information about include guards (and most other
> preprocessor stuff).
Would you like to complete the support for preprocessor directives?
> But it seems to me that include guards could be rewritten with a much
> simpler tool, like sed. Have you given that a try?
The stream editor is not appropriate because I need to extract text
positions together with the found symbols.
I have got the impression that the application of regular expressions is
also potentially unsafe.
How do you think about a cooperation with the Wave class library?
http://www.boost.org/doc/libs/1_40_0/libs/wave/doc/preface.html
http://www.boost.org/doc/libs/1_40_0/libs/python/doc/index.html
>> SF Markus Elfring wrote:
>> Hello!
>>
>> I have read the article
>>
"http://blog.mozilla.com/cjones/2009/08/04/introducing-porky-py-low-fat-pork/".
>> Now I am interested if the tool supports a specific maintenance task
>> for C++ source files.
>>
>> I would like to rename include guards. Can preprocessor symbols be
>> automatically adjusted?
>>
>> Regards,
>> Markus
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis