diff --git a/mfbt/Attributes.h b/mfbt/Attributes.h index 58a5a92f76d2..5c43fb425202 100644 --- a/mfbt/Attributes.h +++ b/mfbt/Attributes.h @@ -527,12 +527,12 @@ * declarations where an instance of the template should be considered, for * static analysis purposes, to inherit any type annotations (such as * MOZ_MUST_USE_TYPE and MOZ_STACK_CLASS) from its template arguments. - * MOZ_IGNORE_INITIALIZATION: Applies to class member declarations. Occasionally - * there are class members that are not initialized in the constructor, but logic - * elsewhere in the class ensures they are initialized prior to use. Using this - * attribute on a member disables the check that this member must be initialized - * in constructors via list-initialization, in the constructor body, or via functions - * called from the constructor body. + * MOZ_INIT_OUTSIDE_CTOR: Applies to class member declarations. Occasionally + * there are class members that are not initialized in the constructor, + * but logic elsewhere in the class ensures they are initialized prior to use. + * Using this attribute on a member disables the check that this member must be + * initialized in constructors via list-initialization, in the constructor body, + * or via functions called from the constructor body. * MOZ_NON_AUTOABLE: Applies to class declarations. Makes it a compile time error to * use `auto` in place of this type in variable declarations. This is intended to * be used with types which are intended to be implicitly constructed into other @@ -566,7 +566,7 @@ # define MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS \ __attribute__((annotate("moz_inherit_type_annotations_from_template_args"))) # define MOZ_NON_AUTOABLE __attribute__((annotate("moz_non_autoable"))) -# define MOZ_INITIALIZED_OUTSIDE_CONSTRUCTOR \ +# define MOZ_INIT_OUTSIDE_CTOR \ __attribute__((annotate("moz_ignore_ctor_initialization"))) /* * It turns out that clang doesn't like void func() __attribute__ {} without a @@ -599,7 +599,7 @@ # define MOZ_NEEDS_MEMMOVABLE_TYPE /* nothing */ # define MOZ_NEEDS_MEMMOVABLE_MEMBERS /* nothing */ # define MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS /* nothing */ -# define MOZ_INITIALIZED_OUTSIDE_CONSTRUCTOR /* nothing */ +# define MOZ_INIT_OUTSIDE_CTOR /* nothing */ # define MOZ_NON_AUTOABLE /* nothing */ #endif /* MOZ_CLANG_PLUGIN */