<div dir="ltr">Hi all,<div><br></div><div>I have a codebase changing code documentation and comment practices which I'd like to adjust automatically for the most part.  The changes look easy, and certainly automatable, but I haven't figured out how to do it with libtooling</div><div><br></div><div>I'd like to transform </div><div><br></div><div>struct MyStruct{<br>    int field;                                           //docline, at varying distances to the right<br>};</div><div><br></div><div>to</div><div><br></div><div>struct MyStruct{</div><div>    //docline</div><div><span style="font-size:0.875rem">    int field;</span></div><div>};</div><div><br></div><div>In summary, this is about moving a comment following any declaration on the same line to the previous line at the same indentation level.</div><div><br></div><div><br></div><div>Related, I'd like to change many variations of</div><div><br></div><div>/**</div><div>*  comments</div><div>*/</div><div><br></div><div>to</div><div><br></div><div>///</div><div>/// comments</div><div>///</div><div><br></div><div>Is there an existing pathway for these transformations or active work?  Anything close I can get a start from?</div><div><br></div><div>FYI actively using clang-format.</div><div><br></div><div>Thanks,</div><div>Jason</div></div>