<div dir="ltr">If you mean to call the base methods anyway, wouldn't it be better to have a Rewriter object as a member of your class ?<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 12:20 PM, Eli Bendersky <span dir="ltr"><<a href="mailto:eliben@google.com" target="_blank">eliben@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Would there be objections to make clang::Rewriter a bit friendlier for subclassing by marking some of its methods virtual? In particular InsertText, ReplaceText, RemoveText and their variations.</div><div><br></div><div>The reason for this is to be able to subclass Rewriter for the purposes of logging, debugging and other custom capabilities.</div><div><br></div><div>If this sounds reasonable, I'll be happy to implement this.</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Eli<br></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>