[PATCH] D98745: [clang] Add fixit for Wreorder-ctor

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 16 15:40:10 PDT 2021


njames93 created this revision.
njames93 added reviewers: rsmith, sammccall, aaron.ballman.
Herald added a subscriber: mgrang.
njames93 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Create fix-it hints to fix the order of constructors.
To make this a lot simpler, I've grouped all the warnings for each out of order initializer into 1.
This is necessary as fixing one initializer would often interfere with other initializers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98745

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaDeclCXX.cpp
  clang/test/FixIt/fixit-cxx-init-order.cpp
  clang/test/SemaCXX/constructor-initializer.cpp
  clang/test/SemaCXX/warn-reorder-ctor-initialization.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98745.331118.patch
Type: text/x-patch
Size: 9434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210316/3e1cbd0a/attachment.bin>


More information about the cfe-commits mailing list