malcolm.parsons added a comment.

The fixit construction looks overly complicated.
All you need to do is change a `,` to a `;` and insert a copy of the type:

  << FixItHint::CreateReplacement(CommaRange, ";")
  << FixItHint::CreateInsertionFromRange(VarLocation, TypeRange)

and insert some whitespace where needed.


https://reviews.llvm.org/D27621



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to