[all-commits] [llvm/llvm-project] eb87e5: [clang-tidy] Correct union & macros handling in mo...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sun Mar 26 06:24:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb87e55c9aade5d7b42606487e69b5f3a6da1e65
      https://github.com/llvm/llvm-project/commit/eb87e55c9aade5d7b42606487e69b5f3a6da1e65
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-03-26 (Sun, 26 Mar 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/modernize/use-equals-default.rst
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default.cpp

  Log Message:
  -----------
  [clang-tidy] Correct union & macros handling in modernize-use-equals-default

To this moment this check were ignoring only inline
union special members, From now also out-of-line
special members going to be ignored. Also extended
support for IgnoreMacros to cover also macros used
inside a body, or used preprocesor directives.

Fixes:
 - https://github.com/llvm/llvm-project/issues/28300
 - https://github.com/llvm/llvm-project/issues/40554

Reviewed By: alexander-shaposhnikov

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




More information about the All-commits mailing list