[clang] [clang] Document the type_visibility attribute (PR #79157)

Louis Dionne via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 23 07:54:20 PST 2024


================
@@ -3220,8 +3220,8 @@ def TypeVisibility : InheritableAttr {
   let Args = [EnumArgument<"Visibility", "VisibilityType",
                            ["default", "hidden", "internal", "protected"],
                            ["Default", "Hidden", "Hidden", "Protected"]>];
-//  let Subjects = [Tag, ObjCInterface, Namespace];
-  let Documentation = [Undocumented];
+  let Subjects = SubjectList<[Tag, ObjCInterface, Namespace], ErrorDiag>;
----------------
ldionne wrote:

I'm not certain if this is correct, and whether this means I need to add some tests.

https://github.com/llvm/llvm-project/pull/79157


More information about the cfe-commits mailing list