[all-commits] [llvm/llvm-project] 279ea9: [clang] Add fixit for Wreorder-ctor

Nathan James via All-commits all-commits at lists.llvm.org
Wed Mar 24 12:23:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 279ea930fa21b283688b2598816095a48d0ca4d7
      https://github.com/llvm/llvm-project/commit/279ea930fa21b283688b2598816095a48d0ca4d7
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

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

  Log Message:
  -----------
  [clang] Add fixit for Wreorder-ctor

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.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D98745




More information about the All-commits mailing list