[all-commits] [llvm/llvm-project] b34ca0: [clang-tidy] Fix handling of UseAssignment option ...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sun Apr 16 03:35:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b34ca0851a5209a10c0ca285c000a18073677891
      https://github.com/llvm/llvm-project/commit/b34ca0851a5209a10c0ca285c000a18073677891
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-04-16 (Sun, 16 Apr 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/cppcoreguidelines/PreferMemberInitializerCheck.cpp
    M clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/prefer-member-initializer.rst
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer-modernize-use-default-member-init-assignment.cpp
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/prefer-member-initializer-modernize-use-default-member-init.cpp

  Log Message:
  -----------
  [clang-tidy] Fix handling of UseAssignment option in cppcoreguidelines-prefer-member-initializer

>From now on check will use value from cppcoreguidelines-prefer-member-initializer
and fallback to modernize-use-default-member-init.UseAssignment if not specified.

Fixes: #55616.

Reviewed By: carlosgalvezp

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




More information about the All-commits mailing list