[PATCH] D27621: [clang-tidy] check to find declarations declaring more than one name

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 12 01:31:17 PST 2016

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.


More information about the cfe-commits mailing list