Re: expose c++ ast
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Слепнев Владимир wrote: > Hello, > > I am interested in parsing C++ to enforce coding standards (like naming > conventions for classes, initialization of variables etc.) How feasible > is it to use the Synopsis ASTs for that? that depends on what you mean by 'enforce'. You can certainly use it to inspect names of declarations, and issue messages accordingly. However, the AST as it exists today doesn't cover anything else (such as bitrary statements), so for example you won't be able to inspect function / member implementations. Please note that this topic is under active development. Needless to say, any help is highly appreciated ! Regards, Stefan