Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] ASTRewrite and addComment

You are right, it is currently impossible to create a comment node using only public API. Feel free to create a feature request and add a method for that to INodeFactory and NodeFactory.


On Wed, Nov 27, 2013 at 11:57 AM, Ayupov, Andrey <andrey.ayupov@xxxxxxxxx> wrote:

Seems like the ASTRewriter has some support for comments (I believe adds only):

public void addComment(IASTNode node, IASTComment comment, CommentPosition pos)


However, I can’t find who can create an IASTComment implementing object for me. The ICPPNodeFactory does not have a creator method for that. Any clues?


Thanks and happy thanksgiving!

cdt-dev mailing list

Back to the top