[clang-tidy] Fix false-positive in cppcoreguidelines-slicing
authorPiotr Zegar <piotr.zegar@nokia.com>
Sat, 11 Mar 2023 17:36:20 +0000 (17:36 +0000)
committerPiotr Zegar <piotr.zegar@nokia.com>
Sat, 11 Mar 2023 17:36:21 +0000 (17:36 +0000)
commitf1e2469edcfc160867e4ef73b2dcc259974c9d6a
tree993104f89274bc352175eb9cc724944c400f06aa
parent9b8d9447f867dff29407fddeb4bed0f89bd4e9f7
[clang-tidy] Fix false-positive in cppcoreguidelines-slicing

When warning would be emitted in constructor for virtual base class
initialization.

Fixes: https://github.com/llvm/llvm-project/issues/31187

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D144206
clang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/slicing.cpp