On 21 Sep., 21:05, Chris Jones wrote: > No, not really. Porky.py has a relatively small DSL designed for > rewriting C++ expressions; it's a major scope creep to include > preprocessor directives there.
Thanks for this clarification. It would be nice if all features from the C++ programming language will be supported. > I'm not really sure what your use case is. It looks simple if you perform the intended source code adjustments manually. It becomes tedious if the number of source files grows to remarkable values. > If it's just renaming a known set of include guards, I'd still give sed > a shot (perhaps wrapped in a higher-level script that generates sed > rewrite expressions based on filename). The script or a compiled program should handle the general pattern for include guard recognition. It might happen that a potential regular expression is too big. Which tools or regex engines do support more than 9 captures and corresponding backreferences for example? Regards, Markus _______________________________________________ dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
