[all-commits] [llvm/llvm-project] 95e823: [clang-tidy]: Use correct term for user-provided c...

Anders Schau Knatten via All-commits all-commits at lists.llvm.org
Mon Jul 1 12:08:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95e823e88982127666eec76e79143f2857daa2ad
      https://github.com/llvm/llvm-project/commit/95e823e88982127666eec76e79143f2857daa2ad
  Author: Anders Schau Knatten <anders at knatten.org>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/pro-type-member-init.rst
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/pro-type-member-init.cpp

  Log Message:
  -----------
  [clang-tidy]: Use correct term for user-provided constructor (#96617)

First of all, fix a confusion in the documentation for
pro-type-member-init which used the wrong term for a user-provided
constructor. (In the corresponding comment in ProTypeMemberInitCheck.h,
which was added in the same commit that added this documentation, we
already use the correct term).

Second, also fix a comment in the corresponding test that had the same
mistake.

https://timsong-cpp.github.io/cppwp/std23/dcl.fct.def.default#5:

> A function is user-provided if it is user-declared and not explicitly
> defaulted or deleted on its first declaration.

("user-defined constructor" is not a thing in the standard)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list