The compiler should not warn on code such as:
class [[maybe_unused]] MaybeUnusedClass {};
class C {
MaybeUnusedClass c;
};
Patch based on comments on the bug by Shafik and Aaron.
Fixes #61334
Differential revision: https://reviews.llvm.org/D159083
724 KiB
724 KiB