Commit a4fbc091 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment