Bug 1920718 - Annotate all global variable with runtime initialization attributes r=glandium,application-update-reviewers,media-playback-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,gfx-reviewers,aosmond,lina,nalexander,aabh,geckoview-reviewers,win-reviewers,gstoll,m_kato
MOZ_RUNINIT => initialized at runtime MOZ_CONSTINIT => initialized at compile time MOZ_GLOBINIT => initialized either at runtime or compile time, depending on template parameter, macro parameter etc This annotation is only understood by our clang-tidy plugin. It has no effect on regular compilation. Differential Revision: https://phabricator.services.mozilla.com/D223341
This commit is contained in:
@@ -18,8 +18,8 @@ using namespace mozilla::a11y;
|
||||
|
||||
#define PREF_ACCESSIBILITY_MAC_DEBUG "accessibility.mac.debug"
|
||||
|
||||
static nsTHashMap<nsPtrHashKey<mozilla::a11y::Accessible>,
|
||||
MOXTextMarkerDelegate*>
|
||||
MOZ_RUNINIT static nsTHashMap<nsPtrHashKey<mozilla::a11y::Accessible>,
|
||||
MOXTextMarkerDelegate*>
|
||||
sDelegates;
|
||||
|
||||
@implementation MOXTextMarkerDelegate
|
||||
|
||||
@@ -411,7 +411,7 @@ struct RoleDescrMap {
|
||||
const nsString description;
|
||||
};
|
||||
|
||||
static const RoleDescrMap sRoleDescrMap[] = {
|
||||
MOZ_RUNINIT static const RoleDescrMap sRoleDescrMap[] = {
|
||||
{@"AXApplicationAlert", u"alert"_ns},
|
||||
{@"AXApplicationAlertDialog", u"alertDialog"_ns},
|
||||
{@"AXApplicationDialog", u"dialog"_ns},
|
||||
|
||||
Reference in New Issue
Block a user