Clang: Don't warn about unused private fields of types declared maybe_unused
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
parent
6eb1b237
Please register or sign in to comment